define("value/jwplayer/6.10.4906/jwplayer.html5-debug", [ "./jwplayer-debug" ], function(require, exports, module) {
    "use strict";
    require("./jwplayer-debug");
    (function(h) {
        h.html5 = {};
        h.html5.version = "6.10.4906";
        h = h.utils.css;
        h(".jwplayer ".slice(0, -1) + " div span a img ul li video".split(" ").join(", .jwplayer ") + ", .jwclick", {
            margin: 0,
            padding: 0,
            border: 0,
            color: "#000000",
            "font-size": "100%",
            font: "inherit",
            "vertical-align": "baseline",
            "background-color": "transparent",
            "text-align": "left",
            direction: "ltr",
            "-webkit-tap-highlight-color": "rgba(255, 255, 255, 0)"
        });
        h(".jwplayer ul", {
            "list-style": "none"
        });
    })(jwplayer);
    (function(h) {
        var k = document;
        h.parseDimension = function(b) {
            return "string" == typeof b ? "" === b ? 0 : -1 < b.lastIndexOf("%") ? b : parseInt(b.replace("px", ""), 10) : b;
        };
        h.timeFormat = function(b) {
            if (0 < b) {
                var a = Math.floor(b / 3600), e = Math.floor((b - 3600 * a) / 60);
                b = Math.floor(b % 60);
                return (a ? a + ":" : "") + (10 > e ? "0" : "") + e + ":" + (10 > b ? "0" : "") + b;
            }
            return "00:00";
        };
        h.bounds = function(b) {
            var a = {
                left: 0,
                right: 0,
                width: 0,
                height: 0,
                top: 0,
                bottom: 0
            };
            if (!b || !k.body.contains(b)) return a;
            if (b.getBoundingClientRect) {
                b = b.getBoundingClientRect(b);
                var e = window.pageYOffset, g = window.pageXOffset;
                if (!b.width && !b.height && !b.left && !b.top) return a;
                a.left = b.left + g;
                a.right = b.right + g;
                a.top = b.top + e;
                a.bottom = b.bottom + e;
                a.width = b.right - b.left;
                a.height = b.bottom - b.top;
            } else {
                a.width = b.offsetWidth | 0;
                a.height = b.offsetHeight | 0;
                do a.left += b.offsetLeft | 0, a.top += b.offsetTop | 0; while (b = b.offsetParent);
                a.right = a.left + a.width;
                a.bottom = a.top + a.height;
            }
            return a;
        };
        h.empty = function(b) {
            if (b) for (;0 < b.childElementCount; ) b.removeChild(b.children[0]);
        };
    })(jwplayer.utils);
    (function(h) {
        var k = h.stretching = {
            NONE: "none",
            FILL: "fill",
            UNIFORM: "uniform",
            EXACTFIT: "exactfit"
        };
        h.scale = function(b, a, e, g, c) {
            var d = "";
            a = a || 1;
            e = e || 1;
            g |= 0;
            c |= 0;
            if (1 !== a || 1 !== e) d = "scale(" + a + ", " + e + ")";
            if (g || c) d = "translate(" + g + "px, " + c + "px)";
            h.transform(b, d);
        };
        h.stretch = function(b, a, e, g, c, d) {
            if (!a || !e || !g || !c || !d) return !1;
            b = b || k.UNIFORM;
            var f = 2 * Math.ceil(e / 2) / c, D = 2 * Math.ceil(g / 2) / d, m = "video" === a.tagName.toLowerCase(), s = !1, v = "jw" + b.toLowerCase();
            switch (b.toLowerCase()) {
              case k.FILL:
                f > D ? D = f : f = D;
                s = !0;
                break;

              case k.NONE:
                f = D = 1;

              case k.EXACTFIT:
                s = !0;
                break;

              default:
                f > D ? .95 < c * D / e ? (s = !0, v = "jwexactfit") : (c *= D, d *= D) : .95 < d * f / g ? (s = !0, 
                v = "jwexactfit") : (c *= f, d *= f), s && (f = 2 * Math.ceil(e / 2) / c, D = 2 * Math.ceil(g / 2) / d);
            }
            m ? (b = {
                left: "",
                right: "",
                width: "",
                height: ""
            }, s ? (e < c && (b.left = b.right = Math.ceil((e - c) / 2)), g < d && (b.top = b.bottom = Math.ceil((g - d) / 2)), 
            b.width = c, b.height = d, h.scale(a, f, D, 0, 0)) : (s = !1, h.transform(a)), h.css.style(a, b)) : a.className = a.className.replace(/\s*jw(none|exactfit|uniform|fill)/g, "") + " " + v;
            return s;
        };
    })(jwplayer.utils);
    (function(h) {
        h.dfxp = function() {
            var k = jwplayer.utils.seconds;
            this.parse = function(b) {
                var a = [ {
                    begin: 0,
                    text: ""
                } ];
                b = b.replace(/^\s+/, "").replace(/\s+$/, "");
                var e = b.split("</p>"), g = b.split("</tt:p>"), c = [];
                for (b = 0; b < e.length; b++) 0 <= e[b].indexOf("<p") && (e[b] = e[b].substr(e[b].indexOf("<p") + 2).replace(/^\s+/, "").replace(/\s+$/, ""), 
                c.push(e[b]));
                for (b = 0; b < g.length; b++) 0 <= g[b].indexOf("<tt:p") && (g[b] = g[b].substr(g[b].indexOf("<tt:p") + 5).replace(/^\s+/, "").replace(/\s+$/, ""), 
                c.push(g[b]));
                e = c;
                for (b = 0; b < e.length; b++) {
                    g = e[b];
                    c = {};
                    try {
                        var d = g.indexOf('begin="'), g = g.substr(d + 7), d = g.indexOf('" end="');
                        c.begin = k(g.substr(0, d));
                        g = g.substr(d + 7);
                        d = g.indexOf('"');
                        c.end = k(g.substr(0, d));
                        d = g.indexOf('">');
                        g = g.substr(d + 2);
                        c.text = g;
                    } catch (f) {}
                    g = c;
                    g.text && (a.push(g), g.end && (a.push({
                        begin: g.end,
                        text: ""
                    }), delete g.end));
                }
                if (1 < a.length) return a;
                throw {
                    message: "Invalid DFXP file:"
                };
            };
        };
    })(jwplayer.parsers);
    (function(h) {
        h.srt = function() {
            var k = jwplayer.utils, b = k.seconds;
            this.parse = function(a, e) {
                var g = e ? [] : [ {
                    begin: 0,
                    text: ""
                } ];
                a = k.trim(a);
                var c = a.split("\r\n\r\n");
                1 == c.length && (c = a.split("\n\n"));
                for (var d = 0; d < c.length; d++) if ("WEBVTT" != c[d]) {
                    var f, h = c[d];
                    f = {};
                    var m = h.split("\r\n");
                    1 == m.length && (m = h.split("\n"));
                    try {
                        h = 1;
                        0 < m[0].indexOf(" --> ") && (h = 0);
                        var s = m[h].indexOf(" --> ");
                        0 < s && (f.begin = b(m[h].substr(0, s)), f.end = b(m[h].substr(s + 5)));
                        if (m[h + 1]) {
                            f.text = m[h + 1];
                            for (h += 2; h < m.length; h++) f.text += "<br/>" + m[h];
                        }
                    } catch (v) {}
                    f.text && (g.push(f), f.end && !e && (g.push({
                        begin: f.end,
                        text: ""
                    }), delete f.end));
                }
                if (1 < g.length) return g;
                throw {
                    message: "Invalid SRT file"
                };
            };
        };
    })(jwplayer.parsers);
    (function(h) {
        var k = h.utils, b = h.events, a = b.state, e = window.clearInterval, g = !0, c = !1;
        h.html5.video = function(d, f) {
            function h(a, c) {
                O && Q.sendEvent(a, c);
            }
            function m() {}
            function s(c) {
                j(c);
                O && x == a.PLAYING && !P && (G = (10 * d.currentTime | 0) / 10, A = g, h(b.JWPLAYER_MEDIA_TIME, {
                    position: G,
                    duration: t
                }));
            }
            function v() {
                h(b.JWPLAYER_MEDIA_META, {
                    duration: d.duration,
                    height: d.videoHeight,
                    width: d.videoWidth
                });
            }
            function u(a) {
                O && (A || (A = g, n()), "loadedmetadata" == a.type && (d.muted && (d.muted = c, 
                d.muted = g), v()));
            }
            function j() {
                A && 0 < I && !ha && (q ? setTimeout(function() {
                    0 < I && xa(I);
                }, 200) : xa(I));
            }
            function n() {
                L || (L = g, h(b.JWPLAYER_MEDIA_BUFFER_FULL));
            }
            function B(c) {
                O && !P && (d.paused ? d.currentTime == d.duration && 3 < d.duration || Sa() : (!k.isFF() || !("play" == c.type && x == a.BUFFERING)) && l(a.PLAYING));
            }
            function y() {
                O && (P || l(a.BUFFERING));
            }
            function p(a) {
                var c;
                if ("array" == k.typeOf(a) && 0 < a.length) {
                    c = [];
                    for (var b = 0; b < a.length; b++) {
                        var d = a[b], e = {};
                        e.label = d.label && d.label ? d.label ? d.label : 0 : b;
                        c[b] = e;
                    }
                }
                return c;
            }
            function w(b, f) {
                K = V[Z];
                l(a.BUFFERING);
                e(W);
                W = setInterval(E, 100);
                I = 0;
                d.src !== K.file || H || J ? (L = A = c, t = f ? f : -1, d.src = K.file, d.load()) : (0 === b && (I = -1, 
                xa(b)), v(), d.play());
                G = d.currentTime;
                H && n();
                k.isIOS() && Q.getFullScreen() && (d.controls = !0);
                0 < b && xa(b);
            }
            function l(c) {
                if (!(c == a.PAUSED && x == a.IDLE) && !P && x != c) {
                    var d = x;
                    x = c;
                    h(b.JWPLAYER_PLAYER_STATE, {
                        oldstate: d,
                        newstate: c
                    });
                }
            }
            function E() {
                if (O) {
                    var a;
                    a = d.buffered;
                    a = !a || !d.duration || 0 === a.length ? 0 : a.end(a.length - 1) / d.duration;
                    1 <= a && e(W);
                    a != X && (X = a, h(b.JWPLAYER_MEDIA_BUFFER, {
                        bufferPercent: Math.round(100 * X)
                    }));
                }
            }
            function z(a) {
                h("fullscreenchange", {
                    target: a.target,
                    jwstate: ya
                });
            }
            f = f || "";
            var q = k.isMSIE(), H = k.isMobile(), J = k.isSafari(), C = {
                abort: m,
                canplay: u,
                canplaythrough: m,
                durationchange: function() {
                    if (O) {
                        var a = (10 * d.duration | 0) / 10;
                        t != a && (t = a);
                        ha && 0 < I && a > I && xa(I);
                        s();
                    }
                },
                emptied: m,
                ended: function() {
                    O && x != a.IDLE && (e(W), Z = -1, ia = g, h(b.JWPLAYER_MEDIA_BEFORECOMPLETE), O && (l(a.IDLE), 
                    ia = c, h(b.JWPLAYER_MEDIA_COMPLETE)));
                },
                error: function() {
                    O && (k.log("Error playing media: %o", d.error), h(b.JWPLAYER_MEDIA_ERROR, {
                        message: "Error loading media: File could not be played"
                    }), l(a.IDLE));
                },
                loadeddata: m,
                loadedmetadata: u,
                loadstart: m,
                pause: B,
                play: B,
                playing: B,
                progress: j,
                ratechange: m,
                readystatechange: m,
                seeked: function() {
                    !P && x != a.PAUSED && l(a.PLAYING);
                },
                seeking: q ? y : m,
                stalled: m,
                suspend: m,
                timeupdate: s,
                volumechange: function() {
                    h(b.JWPLAYER_MEDIA_VOLUME, {
                        volume: Math.round(100 * d.volume)
                    });
                    h(b.JWPLAYER_MEDIA_MUTE, {
                        mute: d.muted
                    });
                },
                waiting: y,
                webkitbeginfullscreen: function(a) {
                    ya = !0;
                    z(a);
                    k.isIOS() && (d.controls = c);
                },
                webkitendfullscreen: function(a) {
                    ya = !1;
                    z(a);
                    k.isIOS() && (d.controls = c);
                }
            }, r, K, t, G, A = c, L, I = 0, P = c, x = a.IDLE, Y, W = -1, X = -1, O = c, V, Z = -1, ha = k.isAndroidNative(), ja = k.isIOS(7), Ta = [], ia = c, ya = null, Q = k.extend(this, new b.eventdispatcher(f));
            Q.load = function(a) {
                if (O) {
                    V = a.sources;
                    0 > Z && (Z = 0);
                    if (V) for (var c = k.getCookies().qualityLabel, d = 0; d < V.length; d++) if (V[d]["default"] && (Z = d), 
                    c && V[d].label == c) {
                        Z = d;
                        break;
                    }
                    (c = p(V)) && Q.sendEvent(b.JWPLAYER_MEDIA_LEVELS, {
                        levels: c,
                        currentQuality: Z
                    });
                    w(a.starttime || 0, a.duration);
                }
            };
            Q.stop = function() {
                O && (e(W), d.removeAttribute("src"), q || d.load(), Z = -1, l(a.IDLE));
            };
            Q.destroy = function() {
                e(W);
            };
            Q.play = function() {
                O && !P && d.play();
            };
            var Sa = Q.pause = function() {
                O && (d.pause(), l(a.PAUSED));
            };
            Q.seekDrag = function(a) {
                O && ((P = a) ? d.pause() : d.play());
            };
            var xa = Q.seek = function(a) {
                if (O) if (!P && 0 === I && h(b.JWPLAYER_MEDIA_SEEK, {
                    position: G,
                    offset: a
                }), A) {
                    I = 0;
                    try {
                        d.currentTime = a;
                    } catch (c) {
                        I = a;
                    }
                } else I = a;
            }, Fa = Q.volume = function(a) {
                k.exists(a) && (d.volume = Math.min(Math.max(0, a / 100), 1), Y = 100 * d.volume);
            };
            Q.mute = function(a) {
                k.exists(a) || (a = !d.muted);
                a ? (Y = 100 * d.volume, d.muted = g) : (Fa(Y), d.muted = c);
            };
            Q.addCaptions = function(a) {
                if (k.isIOS() && d.addTextTrack) {
                    var c = window.TextTrackCue;
                    k.foreach(a, function(a, b) {
                        if (b.data) {
                            var e = d.addTextTrack(b.kind, b.label);
                            k.foreach(b.data, function(a, d) {
                                1 == a % 2 && e.addCue(new c(d.begin, b.data[parseInt(a) + 1].begin, d.text));
                            });
                            Ta.push(e);
                            e.mode = "hidden";
                        }
                    });
                }
            };
            Q.resetCaptions = function() {};
            Q.fsCaptions = function(a) {
                if (k.isIOS() && d.addTextTrack) {
                    var c = null;
                    k.foreach(Ta, function(b, d) {
                        !a && "showing" == d.mode && (c = parseInt(b));
                        a || (d.mode = "hidden");
                    });
                    if (!a) return c;
                }
            };
            this.checkComplete = function() {
                return ia;
            };
            Q.detachMedia = function() {
                e(W);
                O = c;
                return d;
            };
            Q.attachMedia = function(d) {
                O = g;
                d || (A = c);
                ia && (l(a.IDLE), h(b.JWPLAYER_MEDIA_COMPLETE), ia = c);
            };
            Q.setContainer = function(a) {
                r = a;
                a.appendChild(d);
            };
            Q.getContainer = function() {
                return r;
            };
            Q.remove = function() {
                d && (d.removeAttribute("src"), q || d.load());
                e(W);
                Z = -1;
                r === d.parentNode && r.removeChild(d);
            };
            Q.setVisibility = function(a) {
                a || ha ? k.css.style(r, {
                    visibility: "visible",
                    opacity: 1
                }) : k.css.style(r, {
                    visibility: "",
                    opacity: 0
                });
            };
            Q.resize = function(a, c, b) {
                return k.stretch(b, d, a, c, d.videoWidth, d.videoHeight);
            };
            Q.setControls = function(a) {
                d.controls = !!a;
            };
            Q.supportsFullscreen = function() {
                return !0;
            };
            Q.setFullScreen = function(a) {
                if (a = !!a) {
                    try {
                        var c = d.webkitEnterFullscreen || d.webkitEnterFullScreen;
                        c && c.apply(d);
                    } catch (b) {
                        return !1;
                    }
                    return Q.getFullScreen();
                }
                (c = d.webkitExitFullscreen || d.webkitExitFullScreen) && c.apply(d);
                return a;
            };
            Q.getFullScreen = function() {
                return ya || d.webkitDisplayingFullscreen;
            };
            Q.audioMode = function() {
                if (!V) return c;
                var a = V[0].type;
                return "oga" == a || "aac" == a || "mp3" == a || "vorbis" == a;
            };
            Q.setCurrentQuality = function(a) {
                if (Z != a && (a = parseInt(a, 10), 0 <= a && V && V.length > a)) {
                    Z = a;
                    k.saveCookie("qualityLabel", V[a].label);
                    h(b.JWPLAYER_MEDIA_LEVEL_CHANGED, {
                        currentQuality: a,
                        levels: p(V)
                    });
                    a = (10 * d.currentTime | 0) / 10;
                    var c = (10 * d.duration | 0) / 10;
                    0 >= c && (c = t);
                    w(a, c);
                }
            };
            Q.getCurrentQuality = function() {
                return Z;
            };
            Q.getQualityLevels = function() {
                return p(V);
            };
            d || (d = document.createElement("video"));
            k.foreach(C, function(a, b) {
                d.addEventListener(a, b, c);
            });
            ja || (d.controls = g, d.controls = c);
            d.setAttribute("x-webkit-airplay", "allow");
            O = g;
        };
    })(jwplayer);
    (function(h, k) {
        function b() {
            return !1;
        }
        function a() {}
        var e = h.jwplayer, g = e.utils, c = e.events, d = c.state, f = new g.scriptloader(h.location.protocol + "//www.youtube.com/iframe_api"), D = g.isMobile(), m = g.isSafari();
        h.onYouTubeIframeAPIReady = function() {
            f = null;
        };
        e.html5.youtube = function(a) {
            function b(a) {
                h.YT && h.YT.loaded ? (K = h.YT, j(a)) : setTimeout(b, 100);
            }
            function u() {
                z();
            }
            function j() {
                var c;
                if (c = !!K) c = G.parentNode, c || (P || (e(a).onReady(j), P = !0), c = null), 
                c = !!c;
                c && x && x.apply(r);
            }
            function n(b) {
                var e = {
                    oldstate: L,
                    newstate: b
                };
                L = b;
                clearInterval(W);
                b !== d.IDLE && (W = setInterval(B, 250), b === d.PLAYING ? g.css("#" + a + " .jwcontrols", {
                    display: ""
                }) : b === d.BUFFERING && y());
                r.sendEvent(c.JWPLAYER_PLAYER_STATE, e);
            }
            function B() {
                if (t && t.getPlayerState) {
                    var a = t.getPlayerState();
                    null !== a && void 0 !== a && a !== X && (X = a, l({
                        data: a
                    }));
                    var b = K.PlayerState;
                    a === b.PLAYING ? (y(), a = {
                        position: (10 * t.getCurrentTime() | 0) / 10,
                        duration: t.getDuration()
                    }, r.sendEvent(c.JWPLAYER_MEDIA_TIME, a)) : a === b.BUFFERING && y();
                }
            }
            function y() {
                var a = 0;
                t && t.getVideoLoadedFraction && (a = Math.round(100 * t.getVideoLoadedFraction()));
                I !== a && (I = a, r.sendEvent(c.JWPLAYER_MEDIA_BUFFER, {
                    bufferPercent: a
                }));
            }
            function p() {
                var a = {
                    duration: t.getDuration(),
                    width: G.clientWidth,
                    height: G.clientHeight
                };
                r.sendEvent(c.JWPLAYER_MEDIA_META, a);
            }
            function w() {
                Y && (Y.apply(r), Y = null);
            }
            function l(a) {
                var b = K.PlayerState;
                switch (a.data) {
                  case b.ENDED:
                    L != d.IDLE && (O = !0, r.sendEvent(c.JWPLAYER_MEDIA_BEFORECOMPLETE, void 0), n(d.IDLE), 
                    O = !1, r.sendEvent(c.JWPLAYER_MEDIA_COMPLETE, void 0));
                    break;

                  case b.PLAYING:
                    V = !1;
                    Z && (Z = !1, p(), a = {
                        levels: r.getQualityLevels(),
                        currentQuality: r.getCurrentQuality()
                    }, r.sendEvent(c.JWPLAYER_MEDIA_LEVELS, a));
                    n(d.PLAYING);
                    break;

                  case b.PAUSED:
                    n(d.PAUSED);
                    break;

                  case b.BUFFERING:
                    n(d.BUFFERING);
                    break;

                  case b.CUED:
                    n(d.IDLE);
                }
            }
            function E() {
                Z && r.play();
            }
            function z() {
                r.sendEvent(c.JWPLAYER_MEDIA_ERROR, {
                    message: "Error loading YouTube: Video could not be played"
                });
            }
            function q() {
                if (D || m) r.setVisibility(!0), g.css("#" + a + " .jwcontrols", {
                    display: "none"
                });
            }
            function H() {
                clearInterval(W);
                if (t && t.stopVideo) try {
                    t.stopVideo(), t.clearVideo();
                } catch (a) {}
            }
            function J() {
                H();
                G && A && A === G.parentNode && A.removeChild(G);
                x = Y = t = null;
            }
            function C(a) {
                Y = null;
                var c = g.youTubeID(a.sources[0].file);
                a.image || (a.image = "http://i.ytimg.com/vi/" + c + "/0.jpg");
                r.setVisibility(!0);
                if (t) if (t.getPlayerState) if (t.getVideoData().video_id !== c) {
                    V ? (H(), t.cueVideoById(c)) : t.loadVideoById(c);
                    var b = t.getPlayerState(), d = K.PlayerState;
                    (b === d.UNSTARTED || b === d.CUED) && q();
                } else 0 < t.getCurrentTime() && t.seekTo(0), p(); else Y = function() {
                    r.load(a);
                }; else x = function() {
                    if (!c) throw {
                        name: "YouTubeID",
                        message: "Invalid YouTube ID"
                    };
                    if (!G.parentNode) throw {
                        name: "YouTubeVideoLayer",
                        message: "YouTube iFrame removed from DOM"
                    };
                    var a = {
                        height: "100%",
                        width: "100%",
                        videoId: c,
                        playerVars: g.extend({
                            autoplay: 0,
                            controls: 0,
                            showinfo: 0,
                            rel: 0,
                            modestbranding: 0,
                            playsinline: 1,
                            origin: location.protocol + "//" + location.hostname
                        }, void 0),
                        events: {
                            onReady: w,
                            onStateChange: l,
                            onPlaybackQualityChange: E,
                            onError: z
                        }
                    };
                    r.setVisibility(!0);
                    t = new K.Player(G, a);
                    G = t.getIframe();
                    x = null;
                    q();
                }, j();
            }
            var r = g.extend(this, new c.eventdispatcher("html5.youtube")), K = h.YT, t = null, G = k.createElement("div"), A, L = d.IDLE, I = -1, P = !1, x = null, Y = null, W = -1, X = -1, O = !1, V = D || m, Z = !0;
            !K && f && (f.addEventListener(c.COMPLETE, b), f.addEventListener(c.ERROR, u), f.load());
            G.id = a + "_youtube";
            r.init = function(a) {
                C(a);
            };
            r.destroy = function() {
                J();
                A = G = K = r = null;
            };
            r.getElement = function() {
                return G;
            };
            r.load = function(a) {
                n(d.BUFFERING);
                C(a);
                r.play();
            };
            r.stop = function() {
                H();
                n(d.IDLE);
            };
            r.play = function() {
                V || t.playVideo && t.playVideo();
            };
            r.pause = function() {
                V || t.pauseVideo && t.pauseVideo();
            };
            r.seek = function(a) {
                V || t.seekTo && t.seekTo(a);
            };
            r.volume = function(a) {
                t && t.setVolume(a);
            };
            r.mute = function(a) {
                t && a && t.setVolume(0);
            };
            r.detachMedia = function() {
                return k.createElement("video");
            };
            r.attachMedia = function() {
                O && (n(d.IDLE), r.sendEvent(c.JWPLAYER_MEDIA_COMPLETE, void 0), O = !1);
            };
            r.setContainer = function(a) {
                A = a;
                a.appendChild(G);
                r.setVisibility(!0);
            };
            r.getContainer = function() {
                return A;
            };
            r.supportsFullscreen = function() {
                return !(!A || !A.requestFullscreen && !A.requestFullScreen && !A.webkitRequestFullscreen && !A.webkitRequestFullScreen && !A.webkitEnterFullscreen && !A.webkitEnterFullScreen && !A.mozRequestFullScreen && !A.msRequestFullscreen);
            };
            r.remove = function() {
                J();
            };
            r.setVisibility = function(a) {
                a ? (g.css.style(G, {
                    display: "block"
                }), g.css.style(A, {
                    visibility: "visible",
                    opacity: 1
                })) : !D && !m && g.css.style(A, {
                    opacity: 0
                });
            };
            r.resize = function(a, c, b) {
                return g.stretch(b, G, a, c, G.clientWidth, G.clientHeight);
            };
            r.checkComplete = function() {
                return O;
            };
            r.getCurrentQuality = function() {
                if (t) {
                    if (t.getAvailableQualityLevels) {
                        var a = t.getPlaybackQuality();
                        return t.getAvailableQualityLevels().indexOf(a);
                    }
                    return -1;
                }
            };
            r.getQualityLevels = function() {
                if (t) {
                    var a = [];
                    if (t.getAvailableQualityLevels) for (var c = t.getAvailableQualityLevels(), b = c.length; b--; ) a.push({
                        label: c[b]
                    });
                    return a;
                }
            };
            r.setCurrentQuality = function(a) {
                if (t && t.getAvailableQualityLevels) {
                    var c = t.getAvailableQualityLevels();
                    c.length && t.setPlaybackQuality(c[c.length - a - 1]);
                }
            };
        };
        e.html5.youtube.prototype = {
            seekDrag: a,
            setFullScreen: b,
            getFullScreen: b,
            setControls: a,
            audioMode: b
        };
    })(window, document);
    (function(h) {
        var k = h.utils, b = k.css, a = h.events, e = 80, g = 30;
        h.html5.adskipbutton = function(c, d, f, h) {
            function m(a) {
                0 > w || (a = f.replace(/xx/gi, Math.ceil(w - a)), u(a));
            }
            function s(a, c) {
                if ("number" == k.typeOf(z)) w = z; else if ("%" == z.slice(-1)) {
                    var b = parseFloat(z.slice(0, -1));
                    c && !isNaN(b) && (w = c * b / 100);
                } else "string" == k.typeOf(z) ? w = k.seconds(z) : isNaN(z) || (w = z);
            }
            function v() {
                l && C.sendEvent(a.JWPLAYER_AD_SKIPPED);
            }
            function u(a) {
                a = a || h;
                var c = p.getContext("2d");
                c.clearRect(0, 0, e, g);
                n(c, 0, 0, e, g, 5, !0, !1, !1);
                n(c, 0, 0, e, g, 5, !1, !0, !1);
                c.fillStyle = "#979797";
                c.globalAlpha = 1;
                var b = p.height / 2, d = p.width / 2;
                c.textAlign = "center";
                c.font = "Bold 12px Sans-Serif";
                a === h && (d -= q.width, c.drawImage(q, p.width - (p.width - c.measureText(h).width) / 2 - 4, (g - q.height) / 2));
                c.fillText(a, d, b + 4);
            }
            function j(a) {
                a = a || h;
                var c = p.getContext("2d");
                c.clearRect(0, 0, e, g);
                n(c, 0, 0, e, g, 5, !0, !1, !0);
                n(c, 0, 0, e, g, 5, !1, !0, !0);
                c.fillStyle = "#FFFFFF";
                c.globalAlpha = 1;
                var b = p.height / 2, d = p.width / 2;
                c.textAlign = "center";
                c.font = "Bold 12px Sans-Serif";
                a === h && (d -= q.width, c.drawImage(H, p.width - (p.width - c.measureText(h).width) / 2 - 4, (g - q.height) / 2));
                c.fillText(a, d, b + 4);
            }
            function n(a, c, b, d, e, f, j, h, x) {
                "undefined" == typeof h && (h = !0);
                "undefined" === typeof f && (f = 5);
                a.beginPath();
                a.moveTo(c + f, b);
                a.lineTo(c + d - f, b);
                a.quadraticCurveTo(c + d, b, c + d, b + f);
                a.lineTo(c + d, b + e - f);
                a.quadraticCurveTo(c + d, b + e, c + d - f, b + e);
                a.lineTo(c + f, b + e);
                a.quadraticCurveTo(c, b + e, c, b + e - f);
                a.lineTo(c, b + f);
                a.quadraticCurveTo(c, b, c + f, b);
                a.closePath();
                h && (a.strokeStyle = "white", a.globalAlpha = x ? 1 : .25, a.stroke());
                j && (a.fillStyle = "#000000", a.globalAlpha = .5, a.fill());
            }
            function B(a, c) {
                var b = document.createElement(a);
                c && (b.className = c);
                return b;
            }
            var y, p, w = -1, l = !1, E, z = 0, q, H, J = !1, C = k.extend(this, new a.eventdispatcher());
            C.updateSkipTime = function(a, c) {
                s(a, c);
                0 <= w && (b.style(y, {
                    visibility: E ? "visible" : "hidden"
                }), 0 < w - a ? (m(a), l && (l = !1, y.style.cursor = "default")) : l || (l || (l = !0, 
                y.style.cursor = "pointer"), J ? j() : u()));
            };
            this.reset = function(a) {
                l = !1;
                z = a;
                s(0, 0);
                m(0);
            };
            C.show = function() {
                E = !0;
                0 < w && b.style(y, {
                    visibility: "visible"
                });
            };
            C.hide = function() {
                E = !1;
                b.style(y, {
                    visibility: "hidden"
                });
            };
            this.element = function() {
                return y;
            };
            q = new Image();
            q.src = "";
            q.className = "jwskipimage jwskipout";
            H = new Image();
            H.src = "";
            H.className = "jwskipimage jwskipover";
            y = B("div", "jwskip");
            y.id = c + "_skipcontainer";
            p = B("canvas");
            y.appendChild(p);
            C.width = p.width = e;
            C.height = p.height = g;
            y.appendChild(H);
            y.appendChild(q);
            b.style(y, {
                visibility: "hidden",
                bottom: d
            });
            y.addEventListener("mouseover", function() {
                J = !0;
                l && j();
            });
            y.addEventListener("mouseout", function() {
                J = !1;
                l && u();
            });
            k.isMobile() ? new k.touch(y).addEventListener(k.touchEvents.TAP, v) : y.addEventListener("click", v);
        };
        b(".jwskip", {
            position: "absolute",
            "float": "right",
            display: "inline-block",
            width: e,
            height: g,
            right: 10
        });
        b(".jwskipimage", {
            position: "relative",
            display: "none"
        });
    })(window.jwplayer);
    (function(h) {
        var k = h.html5, b = h.utils, a = h.events, e = a.state, g = h.parsers, c = b.css, d = b.isAndroid(4, !0), f = "playing", D = document;
        k.captions = function(c, k) {
            function v(a) {
                b.log("CAPTIONS(" + a + ")");
            }
            function u(a) {
                (I = a.fullscreen) ? (j(), setTimeout(j, 500)) : p(!0);
            }
            function j() {
                var a = q.offsetHeight, c = q.offsetWidth;
                0 !== a && 0 !== c && C.resize(c, Math.round(.94 * a));
            }
            function n(a, c) {
                b.ajax(a, function(a) {
                    var b = a.responseXML ? a.responseXML.firstChild : null;
                    G++;
                    if (b) {
                        "xml" == g.localName(b) && (b = b.nextSibling);
                        for (;b.nodeType == b.COMMENT_NODE; ) b = b.nextSibling;
                    }
                    b = b && "tt" == g.localName(b) ? new h.parsers.dfxp() : new h.parsers.srt();
                    try {
                        var d = b.parse(a.responseText);
                        K < t.length && (t[c].data = d);
                        p(!1);
                    } catch (e) {
                        v(e.message + ": " + t[c].file);
                    }
                    G == t.length && (0 < A && (l(A), A = -1), y());
                }, B, !0);
            }
            function B(a) {
                G++;
                v(a);
                G == t.length && (0 < A && (l(A), A = -1), y());
            }
            function y() {
                for (var c = [], b = 0; b < t.length; b++) c.push(t[b]);
                P.sendEvent(a.JWPLAYER_CAPTIONS_LOADED, {
                    captionData: c
                });
            }
            function p(a) {
                t.length ? r == f && 0 < L ? (C.show(), I ? u({
                    fullscreen: !0
                }) : (w(), a && setTimeout(w, 500))) : C.hide() : C.hide();
            }
            function w() {
                C.resize();
            }
            function l(c) {
                0 < c ? (K = c - 1, L = c | 0, K >= t.length || (t[K].data ? C.populate(t[K].data) : G == t.length ? (v("file not loaded: " + t[K].file), 
                0 !== L && E(a.JWPLAYER_CAPTIONS_CHANGED, t, 0), L = 0) : A = c, p(!1))) : (L = 0, 
                p(!1));
            }
            function E(a, c, b) {
                P.sendEvent(a, {
                    type: a,
                    tracks: c,
                    track: b
                });
            }
            function z() {
                for (var a = [ {
                    label: "Off"
                } ], c = 0; c < t.length; c++) a.push({
                    label: t[c].label
                });
                return a;
            }
            var q, H = {
                back: !0,
                color: "#FFFFFF",
                fontSize: 15,
                fontFamily: "Arial,sans-serif",
                fontOpacity: 100,
                backgroundColor: "#000",
                backgroundOpacity: 100,
                edgeStyle: null,
                windowColor: "#FFFFFF",
                windowOpacity: 0
            }, J = {
                fontStyle: "normal",
                fontWeight: "normal",
                textDecoration: "none"
            }, C, r, K, t = [], G = 0, A = -1, L = 0, I = !1, P = new a.eventdispatcher();
            b.extend(this, P);
            this.element = function() {
                return q;
            };
            this.getCaptionsList = function() {
                return z();
            };
            this.getCurrentCaptions = function() {
                return L;
            };
            this.setCurrentCaptions = function(c) {
                0 <= c && L != c && c <= t.length && (l(c), c = z(), b.saveCookie("captionLabel", c[L].label), 
                E(a.JWPLAYER_CAPTIONS_CHANGED, c, L));
            };
            q = D.createElement("div");
            q.id = c.id + "_caption";
            q.className = "jwcaptions";
            c.jwAddEventListener(a.JWPLAYER_PLAYER_STATE, function(a) {
                switch (a.newstate) {
                  case e.IDLE:
                    r = "idle";
                    p(!1);
                    break;

                  case e.PLAYING:
                    r = f, p(!1);
                }
            });
            c.jwAddEventListener(a.JWPLAYER_PLAYLIST_ITEM, function() {
                K = 0;
                t = [];
                C.update(0);
                G = 0;
                for (var e = c.jwGetPlaylist()[c.jwGetPlaylistIndex()].tracks, f = [], j = 0, h = "", g = 0, h = "", j = 0; j < e.length; j++) h = e[j].kind.toLowerCase(), 
                ("captions" == h || "subtitles" == h) && f.push(e[j]);
                L = 0;
                if (!d) {
                    for (j = 0; j < f.length; j++) if (h = f[j].file) f[j].label || (f[j].label = j.toString()), 
                    t.push(f[j]), n(t[j].file, j);
                    for (j = 0; j < t.length; j++) if (t[j]["default"]) {
                        g = j + 1;
                        break;
                    }
                    e = b.getCookies();
                    if (h = e.captionLabel) {
                        e = z();
                        for (j = 0; j < e.length; j++) if (h == e[j].label) {
                            g = j;
                            break;
                        }
                    }
                    0 < g && l(g);
                    p(!1);
                    E(a.JWPLAYER_CAPTIONS_LIST, z(), L);
                }
            });
            c.jwAddEventListener(a.JWPLAYER_MEDIA_ERROR, v);
            c.jwAddEventListener(a.JWPLAYER_ERROR, v);
            c.jwAddEventListener(a.JWPLAYER_READY, function() {
                b.foreach(H, function(a, c) {
                    k && (void 0 !== k[a] ? c = k[a] : void 0 !== k[a.toLowerCase()] && (c = k[a.toLowerCase()]));
                    J[a] = c;
                });
                C = new h.html5.captions.renderer(J, q);
                p(!1);
            });
            c.jwAddEventListener(a.JWPLAYER_MEDIA_TIME, function(a) {
                C.update(a.position);
            });
            c.jwAddEventListener(a.JWPLAYER_FULLSCREEN, u);
            c.jwAddEventListener(a.JWPLAYER_RESIZE, function() {
                p(!1);
            });
        };
        c(".jwcaptions", {
            position: "absolute",
            cursor: "pointer",
            width: "100%",
            height: "100%",
            overflow: "hidden"
        });
    })(jwplayer);
    (function(h) {
        var k = h.utils, b = k.css.style;
        h.html5.captions.renderer = function(a, e) {
            function h(a) {
                a = a || "";
                n = "hidden";
                b(m, {
                    visibility: n
                });
                v.innerHTML = a;
                a.length && (n = "visible", setTimeout(c, 16));
            }
            function c() {
                if ("visible" === n) {
                    var c = m.clientWidth, d = Math.pow(c / 400, .6), e = a.fontSize * d;
                    b(v, {
                        maxWidth: c + "px",
                        fontSize: Math.round(e) + "px",
                        lineHeight: Math.round(1.4 * e) + "px",
                        padding: Math.round(1 * d) + "px " + Math.round(8 * d) + "px"
                    });
                    a.windowOpacity && b(s, {
                        padding: Math.round(5 * d) + "px",
                        borderRadius: Math.round(5 * d) + "px"
                    });
                    b(m, {
                        visibility: n
                    });
                }
            }
            function d() {
                for (var a = -1, c = 0; c < D.length; c++) if (D[c].begin <= j && (c == D.length - 1 || D[c + 1].begin >= j)) {
                    a = c;
                    break;
                }
                -1 == a ? h("") : a != u && (u = a, h(D[c].text));
            }
            function f(a, c, b) {
                b = k.hexToRgba("#000000", b);
                "dropshadow" === a ? c.textShadow = "0 2px 1px " + b : "raised" === a ? c.textShadow = "0 0 5px " + b + ", 0 1px 5px " + b + ", 0 2px 5px " + b : "depressed" === a ? c.textShadow = "0 -2px 1px " + b : "uniform" === a && (c.textShadow = "-2px 0 1px " + b + ",2px 0 1px " + b + ",0 -2px 1px " + b + ",0 2px 1px " + b + ",-1px 1px 1px " + b + ",1px 1px 1px " + b + ",1px -1px 1px " + b + ",1px 1px 1px " + b);
            }
            var D, m, s, v, u, j, n = "visible", B = -1;
            this.hide = function() {
                clearInterval(B);
                b(m, {
                    display: "none"
                });
            };
            this.populate = function(a) {
                u = -1;
                D = a;
                d();
            };
            this.resize = function() {
                c();
            };
            this.show = function() {
                b(m, {
                    display: "block"
                });
                c();
                clearInterval(B);
                B = setInterval(c, 250);
            };
            this.update = function(a) {
                j = a;
                D && d();
            };
            var y = a.fontOpacity, p = a.windowOpacity, w = a.edgeStyle, l = a.backgroundColor, E = {
                display: "inline-block"
            }, z = {
                color: k.hexToRgba(k.rgbHex(a.color), y),
                display: "inline-block",
                fontFamily: a.fontFamily,
                fontStyle: a.fontStyle,
                fontWeight: a.fontWeight,
                textAlign: "center",
                textDecoration: a.textDecoration,
                wordWrap: "break-word"
            };
            p && (E.backgroundColor = k.hexToRgba(k.rgbHex(a.windowColor), p));
            f(w, z, y);
            a.back ? z.backgroundColor = k.hexToRgba(k.rgbHex(l), a.backgroundOpacity) : null === w && f("uniform", z);
            m = document.createElement("div");
            s = document.createElement("div");
            v = document.createElement("span");
            b(m, {
                display: "block",
                height: "auto",
                position: "absolute",
                bottom: "20px",
                textAlign: "center",
                width: "100%"
            });
            b(s, E);
            b(v, z);
            s.appendChild(v);
            m.appendChild(s);
            e.appendChild(m);
        };
    })(jwplayer);
    (function(h) {
        function k(a) {
            return a ? parseInt(a.width, 10) + "px " + parseInt(a.height, 10) + "px" : "0 0";
        }
        var b = h.html5, a = h.utils, e = h.events, g = e.state, c = a.css, d = a.transitionStyle, f = a.isMobile(), D = a.isAndroid(4, !0), m = "button", s = "text", v = "slider", u = "none", j = "100%", n = !1, B = !0, y = null, p = "", w = {
            display: u
        }, l = {
            display: "block"
        }, E = {
            display: p
        }, z = "array", q = window, H = document;
        b.controlbar = function(d, C) {
            function r(a, c, b) {
                return {
                    name: a,
                    type: c,
                    className: b
                };
            }
            function K(b) {
                c.block(aa);
                var e = b.duration == Number.POSITIVE_INFINITY, j = 0 === b.duration && 0 !== b.position && a.isSafari() && !f;
                e || j ? (U.setText(d.jwGetPlaylist()[d.jwGetPlaylistIndex()].title || "Live broadcast"), 
                ja(!1)) : (F.elapsed && (e = a.timeFormat(b.position), F.elapsed.innerHTML = e), 
                F.duration && (e = a.timeFormat(b.duration), F.duration.innerHTML = e), 0 < b.duration ? Ga(b.position / b.duration) : Ga(0), 
                ra = b.duration, sa = b.position, ma || U.setText());
            }
            function t() {
                var a = d.jwGetMute();
                Ha = d.jwGetVolume() / 100;
                ia("mute", a || 0 === Ha);
                Ua(a ? 0 : Ha);
            }
            function G() {
                c.style([ F.hd, F.cc ], w);
                c.style(F.cast, I() ? E : w);
                Za();
                ba();
            }
            function A(a) {
                Pa = a.currentQuality | 0;
                F.hd && (F.hd.querySelector("button").className = 2 === ga.length && 0 === Pa ? "off" : p);
                na && 0 <= Pa && na.setActive(a.currentQuality);
            }
            function L(a) {
                fa && (Ia = a.track | 0, F.cc && (F.cc.querySelector("button").className = 2 === fa.length && 0 === Ia ? "off" : p), 
                oa && 0 <= Ia && oa.setActive(a.track));
            }
            function I() {
                var a = h.cast;
                return a && a.available && a.available();
            }
            function P(a) {
                if (F.cast) {
                    var b = I();
                    c.style(F.cast, b ? E : w);
                    var d = F.cast.className.replace(/\s*jwcancast/, "");
                    b && (d += " jwcancast");
                    F.cast.className = d;
                }
                x(a || ka);
            }
            function x(a) {
                ka = a;
                F.cast && (F.cast.querySelector("button").className = a.active ? p : "off");
                ba();
            }
            function Y() {
                la = a.extend({}, ta, $.getComponentSettings("controlbar"), C);
                Ja = T("background").height;
                var b = ua ? 0 : la.margin;
                c.style(R, {
                    height: Ja,
                    bottom: b,
                    left: b,
                    right: b,
                    "max-width": ua ? p : la.maxwidth
                });
                c(W(".jwtext"), {
                    font: la.fontsize + "px/" + T("background").height + "px " + la.font,
                    color: la.fontcolor,
                    "font-weight": la.fontweight
                });
                c(W(".jwoverlay"), {
                    bottom: Ja
                });
            }
            function W(a) {
                return "#" + aa + (a ? " " + a : p);
            }
            function X() {
                return H.createElement("span");
            }
            function O(b, d, e, f, j) {
                var h = X(), t = T(b);
                f = f ? " left center" : " center";
                var g = k(t);
                h.className = "jw" + b;
                h.innerHTML = "&nbsp;";
                if (t && t.src) return e = e ? {
                    background: "url('" + t.src + "') repeat-x " + f,
                    "background-size": g,
                    height: j ? t.height : p
                } : {
                    background: "url('" + t.src + "') no-repeat" + f,
                    "background-size": g,
                    width: t.width,
                    height: j ? t.height : p
                }, h.skin = t, c(W((j ? ".jwvertical " : p) + ".jw" + b), a.extend(e, d)), F[b] = h;
            }
            function V(a, b, d, e) {
                b && b.src && (c(a, {
                    width: b.width,
                    background: "url(" + b.src + ") no-repeat center",
                    "background-size": k(b)
                }), d.src && !f && c(a + ":hover," + a + ".off:hover", {
                    background: "url(" + d.src + ") no-repeat center",
                    "background-size": k(d)
                }), e && e.src && c(a + ".off", {
                    background: "url(" + e.src + ") no-repeat center",
                    "background-size": k(e)
                }));
            }
            function Z(a) {
                return function(c) {
                    yb[a] && (yb[a](), f && U.sendEvent(e.JWPLAYER_USER_ACTION));
                    c.preventDefault && c.preventDefault();
                };
            }
            function ha(c) {
                a.foreach(lb, function(a, b) {
                    a != c && ("cc" == a && M(), "hd" == a && S(), b.hide());
                });
            }
            function ja(a) {
                R && F.alt && (void 0 === a && (a = R.parentNode && 320 <= R.parentNode.clientWidth), 
                a && !ma ? c.style(Va, E) : c.style(Va, w));
            }
            function Ta() {
                !ua && !ma && (c.block(aa), wa.show(), Ka("volume", wa), ha("volume"));
            }
            function ia(c, b) {
                a.exists(b) || (b = !mb[c]);
                F[c] && (F[c].className = "jw" + c + (b ? " jwtoggle jwtoggling" : " jwtoggling"), 
                setTimeout(function() {
                    F[c].className = F[c].className.replace(" jwtoggling", p);
                }, 100));
                mb[c] = b;
            }
            function ya() {
                ga && 2 < ga.length && (nb && (clearTimeout(nb), nb = void 0), c.block(aa), na.show(), 
                Ka("hd", na), ha("hd"));
            }
            function Q() {
                fa && 2 < fa.length && (ob && (clearTimeout(ob), ob = void 0), c.block(aa), oa.show(), 
                Ka("cc", oa), ha("cc"));
            }
            function Sa(a) {
                0 <= a && a < ga.length && (d.jwSetCurrentQuality(a), S(), na.hide());
            }
            function xa(a) {
                0 <= a && a < fa.length && (d.jwSetCurrentCaptions(a), M(), oa.hide());
            }
            function Fa() {
                2 == fa.length && xa((Ia + 1) % 2);
            }
            function Ca() {
                2 == ga.length && Sa((Pa + 1) % 2);
            }
            function Da(a) {
                a.preventDefault();
                H.onselectstart = function() {
                    return n;
                };
            }
            function Ea(a) {
                cb();
                za = a;
                q.addEventListener("mouseup", Qa, n);
            }
            function cb() {
                q.removeEventListener("mouseup", Qa);
                za = y;
            }
            function vb() {
                F.timeRail.className = "jwrail";
                d.jwGetState() != g.IDLE && (d.jwSeekDrag(B), Ea("time"), Wa(), U.sendEvent(e.JWPLAYER_USER_ACTION));
            }
            function kb(c) {
                if (za) {
                    var b = F[za].querySelector(".jwrail"), b = a.bounds(b), b = c.x / b.width;
                    100 < b && (b = 100);
                    c.type == a.touchEvents.DRAG_END ? (d.jwSeekDrag(n), F.timeRail.className = "jwrail", 
                    cb(), db.time(b), Xa()) : (Ga(b), 500 < sa - pb && (pb = sa, db.time(b)));
                    U.sendEvent(e.JWPLAYER_USER_ACTION);
                }
            }
            function Oa(c) {
                var b = F.time.querySelector(".jwrail"), b = a.bounds(b);
                c = c.x / b.width;
                100 < c && (c = 100);
                d.jwGetState() != g.IDLE && (db.time(c), U.sendEvent(e.JWPLAYER_USER_ACTION));
            }
            function wb(a) {
                return function(c) {
                    c.button || (F[a + "Rail"].className = "jwrail", "time" === a ? d.jwGetState() != g.IDLE && (d.jwSeekDrag(B), 
                    Ea(a)) : Ea(a));
                };
            }
            function Qa(c) {
                if (za && !c.button) {
                    var b = F[za].querySelector(".jwrail"), e = a.bounds(b), b = za, e = F[b].vertical ? (e.bottom - c.pageY) / e.height : (c.pageX - e.left) / e.width;
                    "mouseup" == c.type ? ("time" == b && d.jwSeekDrag(n), F[b + "Rail"].className = "jwrail", 
                    cb(), db[b.replace("H", p)](e)) : ("time" == za ? Ga(e) : Ua(e), 500 < sa - pb && (pb = sa, 
                    db[za.replace("H", p)](e)));
                    return !1;
                }
            }
            function Wa(a) {
                a && N.apply(this, arguments);
                pa && ra && !ua && !f && (c.block(aa), pa.show(), Ka("time", pa));
            }
            function Xa() {
                q.removeEventListener("mousemove", Qa);
                pa && pa.hide();
            }
            function N(c) {
                La = a.bounds(R);
                if ((Ya = a.bounds(eb)) && 0 !== Ya.width) c = c.pageX ? c.pageX - Ya.left : c.x, 
                pa.positionX(Math.round(c)), xb(ra * c / Ya.width);
            }
            function Aa() {
                a.foreach(fb, function(a, b) {
                    var d = {};
                    "%" === b.position.toString().slice(-1) ? d.left = b.position : 0 < ra ? (d.left = (100 * b.position / ra).toFixed(2) + "%", 
                    d.display = null) : (d.left = 0, d.display = "none");
                    c.style(b.element, d);
                });
            }
            function qa() {
                ob = setTimeout(oa.hide, 500);
            }
            function qb() {
                nb = setTimeout(na.hide, 500);
            }
            function Ra(a, b, d, e) {
                if (!f) {
                    var j = a.element();
                    b.appendChild(j);
                    b.addEventListener("mousemove", d, n);
                    e ? b.addEventListener("mouseout", e, n) : b.addEventListener("mouseout", a.hide, n);
                    c.style(j, {
                        left: "50%"
                    });
                }
            }
            function Ba(c, b, d, j) {
                if (f) {
                    var h = c.element();
                    b.appendChild(h);
                    new a.touch(b).addEventListener(a.touchEvents.TAP, function() {
                        var a = d;
                        "cc" == j ? (2 == fa.length && (a = Fa), gb ? (M(), c.hide()) : (gb = setTimeout(function() {
                            c.hide();
                            gb = void 0;
                        }, 4e3), a()), U.sendEvent(e.JWPLAYER_USER_ACTION)) : "hd" == j && (2 == ga.length && (a = Ca), 
                        hb ? (S(), c.hide()) : (hb = setTimeout(function() {
                            c.hide();
                            hb = void 0;
                        }, 4e3), a()), U.sendEvent(e.JWPLAYER_USER_ACTION));
                    });
                }
            }
            function $a(d) {
                var e = X();
                e.className = "jwgroup jw" + d;
                Ma[d] = e;
                if (da[d]) {
                    var e = da[d], h = Ma[d];
                    if (e && 0 < e.elements.length) for (var t = 0; t < e.elements.length; t++) {
                        var g;
                        a: {
                            g = e.elements[t];
                            var B = d;
                            switch (g.type) {
                              case s:
                                B = void 0;
                                g = g.name;
                                var B = {}, q = T(("alt" == g ? "elapsed" : g) + "Background");
                                if (q.src) {
                                    var r = X();
                                    r.id = aa + "_" + g;
                                    "elapsed" == g || "duration" == g ? (r.className = "jwtext jw" + g + " jwhidden", 
                                    Va.push(r)) : r.className = "jwtext jw" + g;
                                    B.background = "url(" + q.src + ") repeat-x center";
                                    B["background-size"] = k(T("background"));
                                    c.style(r, B);
                                    r.innerHTML = "alt" != g ? "00:00" : p;
                                    B = F[g] = r;
                                } else B = null;
                                g = B;
                                break a;

                              case m:
                                if ("blank" != g.name) {
                                    g = g.name;
                                    q = B;
                                    if (!T(g + "Button").src || f && ("mute" == g || 0 === g.indexOf("volume")) || D && /hd|cc/.test(g)) g = y; else {
                                        var B = X(), r = X(), l = void 0, l = rb, x = O(l.name);
                                        x || (x = X(), x.className = "jwblankDivider");
                                        l.className && (x.className += " " + l.className);
                                        l = x;
                                        x = H.createElement("button");
                                        B.style += " display:inline-block";
                                        B.className = "jw" + g + " jwbuttoncontainer";
                                        "left" == q ? (B.appendChild(r), B.appendChild(l)) : (B.appendChild(l), B.appendChild(r));
                                        f ? "hd" != g && "cc" != g && new a.touch(x).addEventListener(a.touchEvents.TAP, Z(g)) : x.addEventListener("click", Z(g), n);
                                        x.innerHTML = "&nbsp;";
                                        x.tabIndex = -1;
                                        r.appendChild(x);
                                        q = T(g + "Button");
                                        r = T(g + "ButtonOver");
                                        l = T(g + "ButtonOff");
                                        V(W(".jw" + g + " button"), q, r, l);
                                        (q = Eb[g]) && V(W(".jw" + g + ".jwtoggle button"), T(q + "Button"), T(q + "ButtonOver"));
                                        g = F[g] = B;
                                    }
                                    break a;
                                }
                                break;

                              case v:
                                B = void 0;
                                l = g.name;
                                if (f && 0 === l.indexOf("volume")) B = void 0; else {
                                    g = X();
                                    var r = "volume" == l, G = l + ("time" == l ? "Slider" : p) + "Cap", q = r ? "Top" : "Left", B = r ? "Bottom" : "Right", x = O(G + q, y, n, n, r), z = O(G + B, y, n, n, r), K;
                                    K = l;
                                    var A = r, E = q, C = B, P = X(), Y = [ "Rail", "Buffer", "Progress" ], I = void 0, L = void 0;
                                    P.className = "jwrail";
                                    for (var J = 0; J < Y.length; J++) {
                                        var L = "time" == K ? "Slider" : p, ja = K + L + Y[J], M = O(ja, y, !A, 0 === K.indexOf("volume"), A), N = O(ja + "Cap" + E, y, n, n, A), Q = O(ja + "Cap" + C, y, n, n, A), R = T(ja + "Cap" + E), U = T(ja + "Cap" + C);
                                        if (M) {
                                            var S = X();
                                            S.className = "jwrailgroup " + Y[J];
                                            N && S.appendChild(N);
                                            S.appendChild(M);
                                            Q && (S.appendChild(Q), Q.className += " jwcap" + (A ? "Bottom" : "Right"));
                                            c(W(".jwrailgroup." + Y[J]), {
                                                "min-width": A ? p : R.width + U.width
                                            });
                                            S.capSize = A ? R.height + U.height : R.width + U.width;
                                            c(W("." + M.className), {
                                                left: A ? p : R.width,
                                                right: A ? p : U.width,
                                                top: A ? R.height : p,
                                                bottom: A ? U.height : p,
                                                height: A ? "auto" : p
                                            });
                                            2 == J && (I = S);
                                            2 == J && !A ? (M = X(), M.className = "jwprogressOverflow", M.appendChild(S), F[ja] = M, 
                                            P.appendChild(M)) : (F[ja] = S, P.appendChild(S));
                                        }
                                    }
                                    if (E = O(K + L + "Thumb", y, n, n, A)) c(W("." + E.className), {
                                        opacity: "time" == K ? 0 : 1,
                                        "margin-top": A ? E.skin.height / -2 : p
                                    }), E.className += " jwthumb", (A && I ? I : P).appendChild(E);
                                    f ? (A = new a.touch(P), A.addEventListener(a.touchEvents.DRAG_START, vb), A.addEventListener(a.touchEvents.DRAG, kb), 
                                    A.addEventListener(a.touchEvents.DRAG_END, kb), A.addEventListener(a.touchEvents.TAP, Oa)) : (I = K, 
                                    "volume" == I && !A && (I += "H"), P.addEventListener("mousedown", wb(I), n));
                                    "time" == K && !f && (P.addEventListener("mousemove", Wa, n), P.addEventListener("mouseout", Xa, n));
                                    K = F[K + "Rail"] = P;
                                    P = T(G + q);
                                    G = T(G + q);
                                    g.className = "jwslider jw" + l;
                                    x && g.appendChild(x);
                                    g.appendChild(K);
                                    z && (r && (z.className += " jwcapBottom"), g.appendChild(z));
                                    c(W(".jw" + l + " .jwrail"), {
                                        left: r ? p : P.width,
                                        right: r ? p : G.width,
                                        top: r ? P.height : p,
                                        bottom: r ? G.height : p,
                                        width: r ? j : p,
                                        height: r ? "auto" : p
                                    });
                                    F[l] = g;
                                    g.vertical = r;
                                    "time" == l ? (pa = new b.overlay(aa + "_timetooltip", $), ib = new b.thumbs(aa + "_thumb"), 
                                    jb = H.createElement("div"), jb.className = "jwoverlaytext", sb = H.createElement("div"), 
                                    B = ib.element(), sb.appendChild(B), sb.appendChild(jb), pa.setContents(sb), eb = K, 
                                    xb(0), B = pa.element(), K.appendChild(B), F.timeSliderRail || c.style(F.time, w), 
                                    F.timeSliderThumb && c.style(F.timeSliderThumb, {
                                        "margin-left": T("timeSliderThumb").width / -2
                                    }), B = T("timeSliderCue"), q = {
                                        "z-index": 1
                                    }, B && B.src ? (O("timeSliderCue"), q["margin-left"] = B.width / -2) : q.display = u, 
                                    c(W(".jwtimeSliderCue"), q), va(0), Ga(0), Ga(0), va(0)) : 0 === l.indexOf("volume") && (l = g, 
                                    x = "volume" + (r ? p : "H"), z = r ? "vertical" : "horizontal", c(W(".jw" + x + ".jw" + z), {
                                        width: T(x + "Rail", r).width + (r ? 0 : T(x + "Cap" + q).width + T(x + "RailCap" + q).width + T(x + "RailCap" + B).width + T(x + "Cap" + B).width),
                                        height: r ? T(x + "Cap" + q).height + T(x + "Rail").height + T(x + "RailCap" + q).height + T(x + "RailCap" + B).height + T(x + "Cap" + B).height : p
                                    }), l.className += " jw" + z);
                                    B = g;
                                }
                                g = B;
                                break a;
                            }
                            g = void 0;
                        }
                        g && ("volume" == e.elements[t].name && g.vertical ? (wa = new b.overlay(aa + "_volumeOverlay", $), 
                        wa.setContents(g)) : h.appendChild(g));
                    }
                }
            }
            function ba() {
                clearTimeout(zb);
                zb = setTimeout(U.redraw, 0);
            }
            function Za() {
                !tb && 1 < d.jwGetPlaylist().length && (!H.querySelector("#" + d.id + " .jwplaylist") || d.jwGetFullscreen()) ? (c.style(F.next, E), 
                c.style(F.prev, E)) : (c.style(F.next, w), c.style(F.prev, w));
            }
            function Ka(c, b) {
                La || (La = a.bounds(R));
                b.constrainX(La, !0);
            }
            function va(a) {
                F.timeSliderBuffer && (a = Math.min(Math.max(0, a), 1), c.style(F.timeSliderBuffer, {
                    width: (100 * a).toFixed(1) + "%",
                    opacity: 0 < a ? 1 : 0
                }));
            }
            function Na(a, b) {
                if (F[a]) {
                    var d = F[a].vertical, e = a + ("time" === a ? "Slider" : p), f = 100 * Math.min(Math.max(0, b), 1) + "%", g = F[e + "Progress"], e = F[e + "Thumb"], j;
                    g && (j = {}, d ? (j.height = f, j.bottom = 0) : j.width = f, "volume" !== a && (j.opacity = 0 < b || za ? 1 : 0), 
                    c.style(g, j));
                    e && (j = {}, d ? j.top = 0 : j.left = f, c.style(e, j));
                }
            }
            function Ua(a) {
                Na("volume", a);
                Na("volumeH", a);
            }
            function Ga(a) {
                Na("time", a);
            }
            function T(a) {
                var c = "controlbar", b = a;
                0 === a.indexOf("volume") && (0 === a.indexOf("volumeH") ? b = a.replace("volumeH", "volume") : c = "tooltip");
                return (a = $.getSkinElement(c, b)) ? a : {
                    width: 0,
                    height: 0,
                    src: p,
                    image: void 0,
                    ready: n
                };
            }
            function M() {
                clearTimeout(gb);
                gb = void 0;
            }
            function S() {
                clearTimeout(hb);
                hb = void 0;
            }
            function ca(c) {
                c = new h.parsers.srt().parse(c.responseText, !0);
                if (a.typeOf(c) !== z) return ea("Invalid data");
                U.addCues(c);
            }
            function ea(c) {
                a.log("Cues failed to load: " + c);
            }
            var $, rb = r("divider", "divider"), ta = {
                margin: 8,
                maxwidth: 800,
                font: "Arial,sans-serif",
                fontsize: 11,
                fontcolor: 15658734,
                fontweight: "bold",
                layout: {
                    left: {
                        position: "left",
                        elements: [ r("play", m), r("prev", m), r("next", m), r("elapsed", s) ]
                    },
                    center: {
                        position: "center",
                        elements: [ r("time", v), r("alt", s) ]
                    },
                    right: {
                        position: "right",
                        elements: [ r("duration", s), r("hd", m), r("cc", m), r("mute", m), r("volume", v), r("volumeH", v), r("cast", m), r("fullscreen", m) ]
                    }
                }
            }, la, da, F, Ja, R, aa, ra, sa, ga, Pa, fa, Ia, Ha, ka = {}, wa, La, eb, Ya, pa, sb, ib, jb, nb, hb, na, ob, gb, oa, zb, ab = -1, ua = n, ma = n, tb = n, ub = n, za = y, pb = 0, fb = [], bb, Eb = {
                play: "pause",
                mute: "unmute",
                fullscreen: "normalscreen"
            }, mb = {
                play: n,
                mute: n,
                fullscreen: n
            }, yb = {
                play: function() {
                    mb.play ? d.jwPause() : d.jwPlay();
                },
                mute: function() {
                    var a = !mb.mute;
                    d.jwSetMute(a);
                    !a && 0 === Ha && d.jwSetVolume(20);
                    t();
                },
                fullscreen: function() {
                    d.jwSetFullscreen();
                },
                next: function() {
                    d.jwPlaylistNext();
                },
                prev: function() {
                    d.jwPlaylistPrev();
                },
                hd: Ca,
                cc: Fa,
                cast: function() {
                    ka.active ? d.jwStopCasting() : d.jwStartCasting();
                }
            }, db = {
                time: function(a) {
                    bb ? (a = bb.position, a = "%" === a.toString().slice(-1) ? ra * parseFloat(a.slice(0, -1)) / 100 : parseFloat(a)) : a *= ra;
                    d.jwSeek(a);
                },
                volume: function(a) {
                    Ua(a);
                    .1 > a && (a = 0);
                    .9 < a && (a = 1);
                    d.jwSetVolume(100 * a);
                }
            }, lb = {}, Va = [], U = a.extend(this, new e.eventdispatcher()), xb, Ab, Fb = function(a) {
                c.style(pa.element(), {
                    width: a
                });
                Ka("time", pa);
            };
            xb = function(b) {
                var d = ib.updateTimeline(b, Fb);
                if (bb) {
                    if ((b = bb.text) && b !== Ab) Ab = b, c.style(pa.element(), {
                        width: 32 < b.length ? 160 : p
                    });
                } else b = a.timeFormat(b), d || c.style(pa.element(), {
                    width: p
                });
                jb.innerHTML !== b && (jb.innerHTML = b);
                Ka("time", pa);
            };
            U.setText = function(a) {
                c.block(aa);
                var b = F.alt, d = F.time;
                F.timeSliderRail ? c.style(d, a ? w : l) : c.style(d, w);
                b && (c.style(b, a ? l : w), b.innerHTML = a || p);
                ba();
            };
            var Ma = {};
            U.redraw = function(b) {
                c.block(aa);
                b && U.visible && U.show(B);
                Y();
                var d = top !== window.self && a.isMSIE();
                b = ka.active;
                c.style(F.fullscreen, {
                    display: ua || b || ub || d ? u : p
                });
                c.style(F.volumeH, {
                    display: ua || ma ? "block" : u
                });
                (d = la.maxwidth | 0) && R.parentNode && a.isIE() && (!ua && R.parentNode.clientWidth > d + (la.margin | 0) ? c.style(R, {
                    width: d
                }) : c.style(R, {
                    width: p
                }));
                wa && c.style(wa.element(), {
                    display: !ua && !ma ? "block" : u
                });
                c.style(F.hd, {
                    display: !ua && !b && !ma && ga && 1 < ga.length && na ? p : u
                });
                c.style(F.cc, {
                    display: !ua && !ma && fa && 1 < fa.length && oa ? p : u
                });
                Aa();
                c.unblock(aa);
                U.visible && (b = T("capLeft"), d = T("capRight"), b = {
                    left: Math.round(a.parseDimension(Ma.left.offsetWidth) + b.width),
                    right: Math.round(a.parseDimension(Ma.right.offsetWidth) + d.width)
                }, c.style(Ma.center, b));
            };
            U.audioMode = function(a) {
                void 0 !== a && a !== ua && (ua = !!a, ba());
                return ua;
            };
            U.instreamMode = function(a) {
                void 0 !== a && a !== ma && (ma = !!a, c.style(F.cast, ma ? w : E));
                return ma;
            };
            U.adMode = function(a) {
                if (void 0 !== a && a !== tb) {
                    tb = !!a;
                    if (a) {
                        var b = Va, d = b.indexOf(F.elapsed);
                        -1 < d && b.splice(d, 1);
                        b = Va;
                        d = b.indexOf(F.duration);
                        -1 < d && b.splice(d, 1);
                    } else b = Va, d = F.elapsed, -1 === b.indexOf(d) && b.push(d), b = Va, d = F.duration, 
                    -1 === b.indexOf(d) && b.push(d);
                    c.style([ F.cast, F.elapsed, F.duration ], a ? w : E);
                    Za();
                }
                return tb;
            };
            U.hideFullscreen = function(a) {
                void 0 !== a && a !== ub && (ub = !!a, ba());
                return ub;
            };
            U.element = function() {
                return R;
            };
            U.margin = function() {
                return parseInt(la.margin, 10);
            };
            U.height = function() {
                return Ja;
            };
            U.show = function(b) {
                if (!U.visible || b) U.visible = !0, c.style(R, {
                    display: "inline-block"
                }), La = a.bounds(R), ja(), c.block(aa), t(), ba(), clearTimeout(ab), ab = -1, ab = setTimeout(function() {
                    c.style(R, {
                        opacity: 1
                    });
                }, 0);
            };
            U.showTemp = function() {
                this.visible || (R.style.opacity = 0, R.style.display = "inline-block");
            };
            U.hideTemp = function() {
                this.visible || (R.style.display = u);
            };
            U.addCues = function(b) {
                a.foreach(b, function(a, b) {
                    if (b.text) {
                        var c = b.begin, d = b.text;
                        if (/^[\d\.]+%?$/.test(c.toString())) {
                            var e = O("timeSliderCue"), f = F.timeSliderRail, j = {
                                position: c,
                                text: d,
                                element: e
                            };
                            e && f && (f.appendChild(e), e.addEventListener("mouseover", function() {
                                bb = j;
                            }, !1), e.addEventListener("mouseout", function() {
                                bb = y;
                            }, !1), fb.push(j));
                        }
                        Aa();
                    }
                });
            };
            U.hide = function() {
                U.visible && (U.visible = !1, c.style(R, {
                    opacity: 0
                }), clearTimeout(ab), ab = -1, ab = setTimeout(function() {
                    c.style(R, {
                        display: u
                    });
                }, 250));
            };
            F = {};
            aa = d.id + "_controlbar";
            ra = sa = 0;
            R = X();
            R.id = aa;
            R.className = "jwcontrolbar";
            $ = d.skin;
            da = $.getComponentLayout("controlbar");
            da || (da = ta.layout);
            a.clearCss(W());
            c.block(aa + "build");
            Y();
            var Bb = O("capLeft"), Cb = O("capRight"), Db = O("background", {
                position: "absolute",
                left: T("capLeft").width,
                right: T("capRight").width,
                "background-repeat": "repeat-x"
            }, B);
            Db && R.appendChild(Db);
            Bb && R.appendChild(Bb);
            $a("left");
            $a("center");
            $a("right");
            R.appendChild(Ma.left);
            R.appendChild(Ma.center);
            R.appendChild(Ma.right);
            F.hd && (na = new b.menu("hd", aa + "_hd", $, Sa), f ? Ba(na, F.hd, ya, "hd") : Ra(na, F.hd, ya, qb), 
            lb.hd = na);
            F.cc && (oa = new b.menu("cc", aa + "_cc", $, xa), f ? Ba(oa, F.cc, Q, "cc") : Ra(oa, F.cc, Q, qa), 
            lb.cc = oa);
            F.mute && F.volume && F.volume.vertical && (wa = new b.overlay(aa + "_volumeoverlay", $), 
            wa.setContents(F.volume), Ra(wa, F.mute, Ta), lb.volume = wa);
            c.style(Ma.right, {
                right: T("capRight").width
            });
            Cb && R.appendChild(Cb);
            c.unblock(aa + "build");
            d.jwAddEventListener(e.JWPLAYER_MEDIA_TIME, K);
            d.jwAddEventListener(e.JWPLAYER_PLAYER_STATE, function(a) {
                switch (a.newstate) {
                  case g.BUFFERING:
                  case g.PLAYING:
                    F.timeSliderThumb && c.style(F.timeSliderThumb, {
                        opacity: 1
                    });
                    ia("play", B);
                    break;

                  case g.PAUSED:
                    za || ia("play", n);
                    break;

                  case g.IDLE:
                    ia("play", n), F.timeSliderThumb && c.style(F.timeSliderThumb, {
                        opacity: 0
                    }), F.timeRail && (F.timeRail.className = "jwrail"), va(0), K({
                        position: 0,
                        duration: 0
                    });
                }
            });
            d.jwAddEventListener(e.JWPLAYER_PLAYLIST_ITEM, function(b) {
                if (!ma) {
                    b = d.jwGetPlaylist()[b.index].tracks;
                    var c = n, e = F.timeSliderRail;
                    a.foreach(fb, function(a, b) {
                        e.removeChild(b.element);
                    });
                    fb.length = 0;
                    if (a.typeOf(b) == z && !f) for (var j = 0; j < b.length; j++) if (!c && b[j].file && b[j].kind && "thumbnails" == b[j].kind.toLowerCase() && (ib.load(b[j].file), 
                    c = B), b[j].file && b[j].kind && "chapters" == b[j].kind.toLowerCase()) {
                        var g = b[j].file;
                        g ? a.ajax(g, ca, ea, B) : fb.length = 0;
                    }
                    c || ib.load();
                }
            });
            d.jwAddEventListener(e.JWPLAYER_MEDIA_MUTE, t);
            d.jwAddEventListener(e.JWPLAYER_MEDIA_VOLUME, t);
            d.jwAddEventListener(e.JWPLAYER_MEDIA_BUFFER, function(a) {
                va(a.bufferPercent / 100);
            });
            d.jwAddEventListener(e.JWPLAYER_FULLSCREEN, function(a) {
                ia("fullscreen", a.fullscreen);
                Za();
                U.visible && U.show(B);
            });
            d.jwAddEventListener(e.JWPLAYER_PLAYLIST_LOADED, G);
            d.jwAddEventListener(e.JWPLAYER_MEDIA_LEVELS, function(a) {
                ga = a.levels;
                if (!ma && ga && 1 < ga.length && na) {
                    c.style(F.hd, E);
                    na.clearOptions();
                    for (var b = 0; b < ga.length; b++) na.addOption(ga[b].label, b);
                    A(a);
                } else c.style(F.hd, w);
                ba();
            });
            d.jwAddEventListener(e.JWPLAYER_MEDIA_LEVEL_CHANGED, A);
            d.jwAddEventListener(e.JWPLAYER_CAPTIONS_LIST, function(a) {
                fa = a.tracks;
                if (!ma && fa && 1 < fa.length && oa) {
                    c.style(F.cc, E);
                    oa.clearOptions();
                    for (var b = 0; b < fa.length; b++) oa.addOption(fa[b].label, b);
                    L(a);
                } else c.style(F.cc, w);
                ba();
            });
            d.jwAddEventListener(e.JWPLAYER_CAPTIONS_CHANGED, L);
            d.jwAddEventListener(e.JWPLAYER_RESIZE, function() {
                La = a.bounds(R);
                0 < La.width && U.show(B);
            });
            d.jwAddEventListener(e.JWPLAYER_CAST_AVAILABLE, P);
            d.jwAddEventListener(e.JWPLAYER_CAST_SESSION, x);
            f || (R.addEventListener("mouseover", function() {
                q.addEventListener("mousedown", Da, n);
            }, !1), R.addEventListener("mouseout", function() {
                q.removeEventListener("mousedown", Da);
                H.onselectstart = null;
            }, !1));
            setTimeout(t, 0);
            G();
            U.visible = !1;
            P();
        };
        c("span.jwcontrolbar", {
            position: "absolute",
            margin: "auto",
            opacity: 0,
            display: u
        });
        c("span.jwcontrolbar span", {
            height: j
        });
        a.dragStyle("span.jwcontrolbar span", u);
        c("span.jwcontrolbar .jwgroup", {
            display: "inline"
        });
        c("span.jwcontrolbar span, span.jwcontrolbar .jwgroup button,span.jwcontrolbar .jwleft", {
            position: "relative",
            "float": "left"
        });
        c("span.jwcontrolbar .jwright", {
            position: "relative",
            "float": "right"
        });
        c("span.jwcontrolbar .jwcenter", {
            position: "absolute"
        });
        c("span.jwcontrolbar buttoncontainer,span.jwcontrolbar button", {
            display: "inline-block",
            height: j,
            border: u,
            cursor: "pointer"
        });
        c("span.jwcontrolbar .jwcapRight,span.jwcontrolbar .jwtimeSliderCapRight,span.jwcontrolbar .jwvolumeCapRight", {
            right: 0,
            position: "absolute"
        });
        c("span.jwcontrolbar .jwcapBottom", {
            bottom: 0,
            position: "absolute"
        });
        c("span.jwcontrolbar .jwtime", {
            position: "absolute",
            height: j,
            width: j,
            left: 0
        });
        c("span.jwcontrolbar .jwthumb", {
            position: "absolute",
            height: j,
            cursor: "pointer"
        });
        c("span.jwcontrolbar .jwrail", {
            position: "absolute",
            cursor: "pointer"
        });
        c("span.jwcontrolbar .jwrailgroup", {
            position: "absolute",
            width: j
        });
        c("span.jwcontrolbar .jwrailgroup span", {
            position: "absolute"
        });
        c("span.jwcontrolbar .jwdivider+.jwdivider", {
            display: u
        });
        c("span.jwcontrolbar .jwtext", {
            padding: "0 5px",
            "text-align": "center"
        });
        c("span.jwcontrolbar .jwcast", {
            display: u
        });
        c("span.jwcontrolbar .jwcast.jwcancast", {
            display: "block"
        });
        c("span.jwcontrolbar .jwalt", {
            display: u,
            overflow: "hidden"
        });
        c("span.jwcontrolbar .jwalt", {
            position: "absolute",
            left: 0,
            right: 0,
            "text-align": "left"
        }, B);
        c("span.jwcontrolbar .jwoverlaytext", {
            padding: 3,
            "text-align": "center"
        });
        c("span.jwcontrolbar .jwvertical *", {
            display: "block"
        });
        c("span.jwcontrolbar .jwvertical .jwvolumeProgress", {
            height: "auto"
        }, B);
        c("span.jwcontrolbar .jwprogressOverflow", {
            position: "absolute",
            overflow: "hidden"
        });
        d("span.jwcontrolbar", "opacity .25s, background .25s, visibility .25s");
        d("span.jwcontrolbar button", "opacity .25s, background .25s, visibility .25s");
        d("span.jwcontrolbar .jwtoggling", u);
    })(window.jwplayer);
    (function(h) {
        var k = h.utils, b = h.events, a = b.state, e = h.playlist, g = !0, c = !1;
        h.html5.controller = function(d, f) {
            function D() {
                return d.getVideo();
            }
            function m(a) {
                r.sendEvent(a.type, a);
            }
            function s(a) {
                u(g);
                switch (k.typeOf(a)) {
                  case "string":
                    var c = new e.loader();
                    c.addEventListener(b.JWPLAYER_PLAYLIST_LOADED, function(a) {
                        s(a.playlist);
                    });
                    c.addEventListener(b.JWPLAYER_ERROR, function(a) {
                        s([]);
                        a.message = "Could not load playlist: " + a.message;
                        m(a);
                    });
                    c.load(a);
                    break;

                  case "object":
                  case "array":
                    d.setPlaylist(new h.playlist(a));
                    break;

                  case "number":
                    d.setItem(a);
                }
            }
            function v(e) {
                k.exists(e) || (e = g);
                if (!e) return j();
                try {
                    0 <= E && (s(E), E = -1);
                    if (!z && (z = g, r.sendEvent(b.JWPLAYER_MEDIA_BEFOREPLAY), z = c, J)) {
                        J = c;
                        q = null;
                        return;
                    }
                    if (d.state == a.IDLE) {
                        if (0 === d.playlist.length) return c;
                        D().load(d.playlist[d.item]);
                    } else d.state == a.PAUSED && D().play();
                    return g;
                } catch (f) {
                    r.sendEvent(b.JWPLAYER_ERROR, f), q = null;
                }
                return c;
            }
            function u(e) {
                q = null;
                try {
                    return d.state != a.IDLE ? D().stop() : e || (H = g), z && (J = g), g;
                } catch (j) {
                    r.sendEvent(b.JWPLAYER_ERROR, j);
                }
                return c;
            }
            function j(e) {
                q = null;
                k.exists(e) || (e = g);
                if (!e) return v();
                try {
                    switch (d.state) {
                      case a.PLAYING:
                      case a.BUFFERING:
                        D().pause();
                        break;

                      default:
                        z && (J = g);
                    }
                    return g;
                } catch (j) {
                    r.sendEvent(b.JWPLAYER_ERROR, j);
                }
                return c;
            }
            function n(a) {
                k.css.block(d.id + "_next");
                s(a);
                v();
                k.css.unblock(d.id + "_next");
            }
            function B() {
                n(d.item + 1);
            }
            function y() {
                d.state == a.IDLE && (H ? H = c : (q = y, d.repeat ? B() : d.item == d.playlist.length - 1 ? (E = 0, 
                u(g), setTimeout(function() {
                    r.sendEvent(b.JWPLAYER_PLAYLIST_COMPLETE);
                }, 0)) : B()));
            }
            function p(a) {
                return function() {
                    l ? w(a, arguments) : C.push({
                        method: a,
                        arguments: arguments
                    });
                };
            }
            function w(a, b) {
                var c = [], d;
                for (d = 0; d < b.length; d++) c.push(b[d]);
                a.apply(this, c);
            }
            var l = c, E = -1, z = c, q, H = c, J, C = [], r = k.extend(this, new b.eventdispatcher(d.id, d.config.debug));
            this.play = p(v);
            this.pause = p(j);
            this.seek = p(function(b) {
                d.state != a.PLAYING && v(g);
                D().seek(b);
            });
            this.stop = function() {
                d.state == a.IDLE && (H = g);
                p(u)();
            };
            this.load = p(s);
            this.next = p(B);
            this.prev = p(function() {
                n(d.item - 1);
            });
            this.item = p(n);
            this.setVolume = p(d.setVolume);
            this.setMute = p(d.setMute);
            this.setFullscreen = p(function(a) {
                f.fullscreen(a);
            });
            this.detachMedia = function() {
                try {
                    return d.getVideo().detachMedia();
                } catch (a) {
                    return null;
                }
            };
            this.attachMedia = function(a) {
                try {
                    d.getVideo().attachMedia(a), "function" == typeof q && q();
                } catch (b) {
                    return null;
                }
            };
            this.setCurrentQuality = p(function(a) {
                D().setCurrentQuality(a);
            });
            this.getCurrentQuality = function() {
                return D() ? D().getCurrentQuality() : -1;
            };
            this.getQualityLevels = function() {
                return D() ? D().getQualityLevels() : null;
            };
            this.setCurrentCaptions = p(function(a) {
                f.setCurrentCaptions(a);
            });
            this.getCurrentCaptions = function() {
                return f.getCurrentCaptions();
            };
            this.getCaptionsList = function() {
                return f.getCaptionsList();
            };
            this.checkBeforePlay = function() {
                return z;
            };
            this.playerReady = function(a) {
                if (!l) {
                    f.completeSetup();
                    r.sendEvent(a.type, a);
                    h.utils.exists(h.playerReady) && h.playerReady(a);
                    d.addGlobalListener(m);
                    f.addGlobalListener(m);
                    r.sendEvent(h.events.JWPLAYER_PLAYLIST_LOADED, {
                        playlist: h(d.id).getPlaylist()
                    });
                    r.sendEvent(h.events.JWPLAYER_PLAYLIST_ITEM, {
                        index: d.item
                    });
                    s();
                    d.autostart && !k.isMobile() && v();
                    for (l = g; 0 < C.length; ) a = C.shift(), w(a.method, a.arguments);
                }
            };
            d.addEventListener(b.JWPLAYER_MEDIA_BUFFER_FULL, function() {
                D().play();
            });
            d.addEventListener(b.JWPLAYER_MEDIA_COMPLETE, function() {
                setTimeout(y, 25);
            });
            d.addEventListener(b.JWPLAYER_MEDIA_ERROR, function(a) {
                a = k.extend({}, a);
                a.type = b.JWPLAYER_ERROR;
                r.sendEvent(a.type, a);
            });
        };
    })(jwplayer);
    (function(h) {
        h.html5.defaultskin = function() {
            return h.utils.parseXML('<?xml version="1.0" ?><skin author="JW Player" name="Six" target="6.7" version="3.0"><components><component name="controlbar"><settings><setting name="margin" value="10"/><setting name="maxwidth" value="800"/><setting name="fontsize" value="11"/><setting name="fontweight" value="normal"/><setting name="fontcase" value="normal"/><setting name="fontcolor" value="0xd2d2d2"/></settings><elements><element name="background" src=""/><element name="capLeft" src=""/><element name="capRight" src=""/><element name="playButton" src=""/><element name="playButtonOver" src=""/><element name="pauseButton" src=""/><element name="pauseButtonOver" src=""/><element name="prevButton" src=""/><element name="prevButtonOver" src=""/><element name="nextButton" src=""/><element name="nextButtonOver" src=""/><element name="elapsedBackground" src=""/><element name="durationBackground" src=""/><element name="timeSliderCapLeft" src=""/><element name="timeSliderCapRight" src=""/><element name="timeSliderRail" src=""/><element name="timeSliderRailCapLeft" src=""/><element name="timeSliderRailCapRight" src=""/><element name="timeSliderBuffer" src=""/><element name="timeSliderBufferCapLeft" src=""/><element name="timeSliderBufferCapRight" src=""/><element name="timeSliderProgress" src=""/><element name="timeSliderProgressCapLeft" src=""/><element name="timeSliderProgressCapRight" src=""/><element name="timeSliderThumb" src=""/><element name="timeSliderCue" src=""/><element name="hdButtonOff" src=""/><element name="hdButton" src=""/><element name="ccButtonOff" src=""/><element name="ccButton" src=""/><element name="muteButton" src=""/><element name="muteButtonOver" src=""/><element name="unmuteButton" src=""/><element name="unmuteButtonOver" src=""/><element name="castButtonOff" src=""/><element name="castButton" src=""/><element name="fullscreenButton" src=""/><element name="fullscreenButtonOver" src=""/><element name="normalscreenButton" src=""/><element name="normalscreenButtonOver" src=""/><element name="volumeCapLeft" src=""/><element name="volumeCapRight" src=""/><element name="volumeRail" src=""/><element name="volumeRailCapLeft" src=""/><element name="volumeRailCapRight" src=""/><element name="volumeProgress" src=""/><element name="volumeProgressCapLeft" src=""/><element name="volumeProgressCapRight" src=""/></elements></component><component name="display"><settings><setting name="bufferrotation" value="90"/><setting name="bufferinterval" value="125"/><setting name="fontcase" value="normal"/><setting name="fontcolor" value="0xffffff"/><setting name="fontsize" value="11"/><setting name="fontweight" value="normal"/></settings><elements><element name="background" src=""/><element name="backgroundOver" src=""/><element name="capLeft" src=""/><element name="capLeftOver" src=""/><element name="capRight" src=""/><element name="capRightOver" src=""/><element name="bufferIcon" src=""/><element name="bufferIconOver" src=""/><element name="errorIcon" src=""/><element name="errorIconOver" src=""/><element name="playIcon" src=""/><element name="playIconOver" src=""/><element name="replayIcon" src=""/><element name="replayIconOver" src=""/></elements></component><component name="dock"><settings><setting name="iconalpha" value="1"/><setting name="iconalphaactive" value="1"/><setting name="iconalphaover" value="1"/></settings><elements><element name="button" src=""/><element name="buttonOver" src=""/><element name="buttonActive" src=""/><element name="divider" src=""/></elements></component><component name="playlist"><settings><setting name="backgroundcolor" value="0x3c3c3e"/><setting name="fontcolor" value="0x848489"/><setting name="fontsize" value="11"/><setting name="fontweight" value="normal"/><setting name="activecolor" value="0xb2b2b6"/><setting name="overcolor" value="0xb2b2b6"/><setting name="titlecolor" value="0xb9b9be"/><setting name="titlesize" value="12"/><setting name="titleweight" value="bold"/><setting name="titleactivecolor" value="0xececf4"/><setting name="titleovercolor" value="0xececf4"/></settings><elements><element name="item" src=""/><element name="itemActive" src=""/><element name="itemImage" src=""/><element name="divider" src=""/><element name="sliderRail" src=""/><element name="sliderCapTop" src=""/><element name="sliderCapBottom" src=""/><element name="sliderRailCapTop" src=""/><element name="sliderRailCapBottom" src=""/><element name="sliderThumb" src=""/><element name="sliderThumbCapBottom" src=""/><element name="sliderThumbCapTop" src=""/></elements></component><component name="tooltip"><settings><setting name="fontcase" value="normal"/><setting name="fontcolor" value="0xacacac"/><setting name="fontsize" value="11"/><setting name="fontweight" value="normal"/><setting name="activecolor" value="0xffffff"/><setting name="overcolor" value="0xffffff"/></settings><elements><element name="background" src=""/><element name="arrow" src=""/><element name="capTop" src=""/><element name="capBottom" src=""/><element name="capLeft" src=""/><element name="capRight" src=""/><element name="capTopLeft" src=""/><element name="capTopRight" src=""/><element name="capBottomLeft" src=""/><element name="capBottomRight" src=""/><element name="menuOption" src=""/><element name="menuOptionOver" src=""/><element name="menuOptionActive" src=""/><element name="volumeCapTop" src=""/><element name="volumeCapBottom" src=""/><element name="volumeRailCapTop" src=""/><element name="volumeRailCapBottom" src=""/><element name="volumeRail" src=""/><element name="volumeProgress" src=""/><element name="volumeProgressCapTop" src=""/><element name="volumeProgressCapBottom" src=""/><element name="volumeThumb" src=""/></elements></component></components></skin>');
        };
    })(jwplayer);
    (function(h) {
        var k = h.html5, b = h.utils, a = h.events, e = a.state, g = b.css, c = b.isMobile(), d = document, f = ".jwpreview", D = !0, m = !1;
        k.display = function(h, v) {
            function u(d) {
                if (V && (h.jwGetControls() || h.jwGetState() == e.PLAYING)) V(d); else if ((!c || !h.jwGetControls()) && O.sendEvent(a.JWPLAYER_DISPLAY_CLICK), 
                h.jwGetControls()) {
                    var j = new Date().getTime();
                    Z && 500 > j - Z ? (h.jwSetFullscreen(), Z = void 0) : Z = new Date().getTime();
                    var f = b.bounds(z.parentNode.querySelector(".jwcontrolbar")), g = b.bounds(z), j = f.left - 10 - g.left, B = f.left + 30 - g.left, t = g.bottom - 40, r = g.bottom, q = f.right - 30 - g.left, f = f.right + 10 - g.left;
                    if (c && !(d.x >= j && d.x <= B && d.y >= t && d.y <= r)) {
                        if (d.x >= q && d.x <= f && d.y >= t && d.y <= r) {
                            h.jwSetFullscreen();
                            return;
                        }
                        O.sendEvent(a.JWPLAYER_DISPLAY_CLICK);
                        if (I) return;
                    }
                    switch (h.jwGetState()) {
                      case e.PLAYING:
                      case e.BUFFERING:
                        h.jwPause();
                        break;

                      default:
                        h.jwPlay();
                    }
                }
            }
            function j(a, b) {
                X.showicons && (a || b ? (x.setRotation("buffer" == a ? parseInt(X.bufferrotation, 10) : 0, parseInt(X.bufferinterval, 10)), 
                x.setIcon(a), x.setText(b)) : x.hide());
            }
            function n(a) {
                C != a ? (C && E(f, m), (C = a) ? (a = new Image(), a.addEventListener("load", p, m), 
                a.src = C) : (g("#" + z.id + " " + f, {
                    "background-image": ""
                }), E(f, m), r = K = 0)) : C && !I && E(f, D);
                y(h.jwGetState());
            }
            function B(a) {
                clearTimeout(ha);
                ha = setTimeout(function() {
                    y(a.newstate);
                }, 100);
            }
            function y(a) {
                a = Y ? Y : h ? h.jwGetState() : e.IDLE;
                if (a != W) switch (W = a, x && x.setRotation(0), a) {
                  case e.IDLE:
                    !A && !L && (C && !t && E(f, D), a = !0, h._model && !1 === h._model.config.displaytitle && (a = !1), 
                    j("play", J && a ? J.title : ""));
                    break;

                  case e.BUFFERING:
                    A = m;
                    G.error && G.error.setText();
                    L = m;
                    j("buffer");
                    break;

                  case e.PLAYING:
                    j();
                    break;

                  case e.PAUSED:
                    j("play");
                }
            }
            function p() {
                r = this.width;
                K = this.height;
                y(h.jwGetState());
                l();
                C && g("#" + z.id + " " + f, {
                    "background-image": "url(" + C + ")"
                });
            }
            function w(a) {
                A = D;
                j("error", a.message);
            }
            function l() {
                0 < z.clientWidth * z.clientHeight && b.stretch(h.jwGetStretching(), q, z.clientWidth, z.clientHeight, r, K);
            }
            function E(a, b) {
                g("#" + z.id + " " + a, {
                    opacity: b ? 1 : 0,
                    visibility: b ? "visible" : "hidden"
                });
            }
            var z, q, H, J, C, r, K, t = m, G = {}, A = m, L = m, I, P, x, Y, W, X = b.extend({
                showicons: D,
                bufferrotation: 45,
                bufferinterval: 100,
                fontcolor: "#ccc",
                overcolor: "#fff",
                fontsize: 15,
                fontweight: ""
            }, h.skin.getComponentSettings("display"), v), O = new a.eventdispatcher(), V, Z;
            b.extend(this, O);
            this.clickHandler = u;
            var ha;
            this.forceState = function(a) {
                Y = a;
                y(a);
                this.show();
            };
            this.releaseState = function(a) {
                Y = null;
                y(a);
                this.show();
            };
            this.hidePreview = function(a) {
                t = a;
                E(f, !a);
                a && (I = !0);
            };
            this.setHiding = function() {
                I = !0;
            };
            this.element = function() {
                return z;
            };
            this.redraw = l;
            this.show = function(a) {
                if (x && (a || (Y ? Y : h ? h.jwGetState() : e.IDLE) != e.PLAYING)) clearTimeout(P), 
                P = void 0, z.style.display = "block", x.show(), I = !1;
            };
            this.hide = function() {
                x && (x.hide(), I = !0);
            };
            this.setAlternateClickHandler = function(a) {
                V = a;
            };
            this.revertAlternateClickHandler = function() {
                V = void 0;
            };
            z = d.createElement("div");
            z.id = h.id + "_display";
            z.className = "jwdisplay";
            q = d.createElement("div");
            q.className = "jwpreview jw" + h.jwGetStretching();
            z.appendChild(q);
            h.jwAddEventListener(a.JWPLAYER_PLAYER_STATE, B);
            h.jwAddEventListener(a.JWPLAYER_PLAYLIST_ITEM, function() {
                A = m;
                G.error && G.error.setText();
                var a = (J = h.jwGetPlaylist()[h.jwGetPlaylistIndex()]) ? J.image : "";
                W = void 0;
                n(a);
            });
            h.jwAddEventListener(a.JWPLAYER_PLAYLIST_COMPLETE, function() {
                L = D;
                j("replay");
                var a = h.jwGetPlaylist()[0];
                n(a.image);
            });
            h.jwAddEventListener(a.JWPLAYER_MEDIA_ERROR, w);
            h.jwAddEventListener(a.JWPLAYER_ERROR, w);
            c ? (H = new b.touch(z), H.addEventListener(b.touchEvents.TAP, u)) : z.addEventListener("click", u, m);
            H = {
                font: X.fontweight + " " + X.fontsize + "px/" + (parseInt(X.fontsize, 10) + 3) + "px Arial, Helvetica, sans-serif",
                color: X.fontcolor
            };
            x = new k.displayicon(z.id + "_button", h, H, {
                color: X.overcolor
            });
            z.appendChild(x.element());
            B({
                newstate: e.IDLE
            });
        };
        g(".jwdisplay", {
            position: "absolute",
            width: "100%",
            height: "100%",
            overflow: "hidden"
        });
        g(".jwdisplay " + f, {
            position: "absolute",
            width: "100%",
            height: "100%",
            background: "#000 no-repeat center",
            overflow: "hidden",
            opacity: 0
        });
        b.transitionStyle(".jwdisplay, .jwdisplay *", "opacity .25s, color .25s");
    })(jwplayer);
    (function(h) {
        var k = h.utils, b = k.css, a = document, e = "none", g = "100%";
        h.html5.displayicon = function(c, d, f, D) {
            function m(b, c, d, e) {
                var j = a.createElement("div");
                j.className = b;
                c && c.appendChild(j);
                y && s(j, b, "." + b, d, e);
                return j;
            }
            function s(a, c, e, j, f) {
                var g = v(c);
                "replayIcon" == c && !g.src && (g = v("playIcon"));
                g.src ? (j = k.extend({}, j), 0 < c.indexOf("Icon") && (C = g.width | 0), j.width = g.width, 
                j["background-image"] = "url(" + g.src + ")", j["background-size"] = g.width + "px " + g.height + "px", 
                j["float"] = "none", f = k.extend({}, f), g.overSrc && (f["background-image"] = "url(" + g.overSrc + ")"), 
                k.isMobile() || b("#" + d.id + " .jwdisplay:hover " + e, f), b.style(y, {
                    display: "table"
                })) : b.style(y, {
                    display: "none"
                });
                j && b.style(a, j);
                J = g;
            }
            function v(a) {
                var b = B.getSkinElement("display", a);
                a = B.getSkinElement("display", a + "Over");
                return b ? (b.overSrc = a && a.src ? a.src : "", b) : {
                    src: "",
                    overSrc: "",
                    width: 0,
                    height: 0
                };
            }
            function u() {
                var a = E || 0 === C;
                b.style(z, {
                    display: z.innerHTML && a ? "" : e
                });
                K = a ? 30 : 0;
                j();
            }
            function j() {
                clearTimeout(r);
                0 < K-- && (r = setTimeout(j, 33));
                var a = "px " + g, c = Math.ceil(Math.max(J.width, k.bounds(y).width - l.width - w.width)), a = {
                    "background-size": [ w.width + a, c + a, l.width + a ].join(", ")
                };
                y.parentNode && (a.left = 1 == y.parentNode.clientWidth % 2 ? "0.5px" : "");
                b.style(y, a);
            }
            function n() {
                A = (A + G) % 360;
                k.rotate(q, A);
            }
            var B = d.skin, y, p, w, l, E, z, q, H = {}, J, C = 0, r = -1, K = 0;
            this.element = function() {
                return y;
            };
            this.setText = function(b) {
                var c = z.style;
                z.innerHTML = b ? b.replace(":", ":<br>") : "";
                c.height = "0";
                c.display = "block";
                if (b) for (;2 < Math.floor(z.scrollHeight / a.defaultView.getComputedStyle(z, null).lineHeight.replace("px", "")); ) z.innerHTML = z.innerHTML.replace(/(.*) .*$/, "$1...");
                c.height = "";
                c.display = "";
                u();
            };
            this.setIcon = function(a) {
                var b = H[a];
                b || (b = m("jwicon"), b.id = y.id + "_" + a);
                s(b, a + "Icon", "#" + b.id);
                y.contains(q) ? y.replaceChild(b, q) : y.appendChild(b);
                q = b;
            };
            var t, G = 0, A;
            this.setRotation = function(a, b) {
                clearInterval(t);
                A = 0;
                G = a | 0;
                0 === G ? n() : t = setInterval(n, b);
            };
            var L = this.hide = function() {
                y.style.opacity = 0;
                y.style.cursor = "";
            };
            this.show = function() {
                y.style.opacity = 1;
                y.style.cursor = "pointer";
            };
            y = m("jwdisplayIcon");
            y.id = c;
            p = v("background");
            w = v("capLeft");
            l = v("capRight");
            E = 0 < w.width * l.width;
            var I = {
                "background-image": "url(" + w.src + "), url(" + p.src + "), url(" + l.src + ")",
                "background-position": "left,center,right",
                "background-repeat": "no-repeat",
                padding: "0 " + l.width + "px 0 " + w.width + "px",
                height: p.height,
                "margin-top": p.height / -2
            };
            b("#" + c, I);
            k.isMobile() || (p.overSrc && (I["background-image"] = "url(" + w.overSrc + "), url(" + p.overSrc + "), url(" + l.overSrc + ")"), 
            b(".jw-tab-focus #" + c + ", #" + d.id + " .jwdisplay:hover " + ("#" + c), I));
            z = m("jwtext", y, f, D);
            q = m("jwicon", y);
            d.jwAddEventListener(h.events.JWPLAYER_RESIZE, j);
            L();
            u();
        };
        b(".jwplayer .jwdisplayIcon", {
            display: "table",
            position: "relative",
            "margin-left": "auto",
            "margin-right": "auto",
            top: "50%",
            "float": "none"
        });
        b(".jwplayer .jwdisplayIcon div", {
            position: "relative",
            display: "table-cell",
            "vertical-align": "middle",
            "background-repeat": "no-repeat",
            "background-position": "center"
        });
        b(".jwplayer .jwdisplayIcon div", {
            "vertical-align": "middle"
        }, !0);
        b(".jwplayer .jwdisplayIcon .jwtext", {
            color: "#fff",
            padding: "0 1px",
            "max-width": "300px",
            "overflow-y": "hidden",
            "text-align": "center",
            "-webkit-user-select": e,
            "-moz-user-select": e,
            "-ms-user-select": e,
            "user-select": e
        });
    })(jwplayer);
    (function(h) {
        var k = h.html5, b = h.utils, a = b.css, e = b.bounds, g = ".jwdockbuttons", c = document, d = "none", f = "block";
        k.dock = function(h, m) {
            function s(a) {
                return !a || !a.src ? {} : {
                    background: "url(" + a.src + ") center",
                    "background-size": a.width + "px " + a.height + "px"
                };
            }
            function v(c, d) {
                var e = n(c);
                a(u("." + c), b.extend(s(e), {
                    width: e.width
                }));
                return j("div", c, d);
            }
            function u(a) {
                return "#" + p + " " + (a ? a : "");
            }
            function j(a, b, d) {
                a = c.createElement(a);
                b && (a.className = b);
                d && d.appendChild(a);
                return a;
            }
            function n(a) {
                return (a = w.getSkinElement("dock", a)) ? a : {
                    width: 0,
                    height: 0,
                    src: ""
                };
            }
            function B() {
                a(g + " .capLeft, " + g + " .capRight", {
                    display: l ? f : d
                });
            }
            var y = b.extend({}, {
                iconalpha: .75,
                iconalphaactive: .5,
                iconalphaover: 1,
                margin: 8
            }, m), p = h.id + "_dock", w = h.skin, l = 0, E = {}, z = {}, q, H, J, C = this;
            C.redraw = function() {
                e(q);
            };
            C.element = function() {
                return q;
            };
            C.offset = function(b) {
                a(u(), {
                    "margin-left": b
                });
            };
            C.hide = function() {
                C.visible && (C.visible = !1, q.style.opacity = 0, clearTimeout(J), J = setTimeout(function() {
                    q.style.display = d;
                }, 250));
            };
            C.showTemp = function() {
                C.visible || (q.style.opacity = 0, q.style.display = f);
            };
            C.hideTemp = function() {
                C.visible || (q.style.display = d);
            };
            C.show = function() {
                !C.visible && l && (C.visible = !0, q.style.display = f, clearTimeout(J), J = setTimeout(function() {
                    q.style.opacity = 1;
                }, 0));
            };
            C.addButton = function(c, d, f, g) {
                if (!E[g]) {
                    var h = j("div", "divider", H), t = j("div", "button", H), r = j("div", null, t);
                    r.id = p + "_" + g;
                    r.innerHTML = "&nbsp;";
                    a("#" + r.id, {
                        "background-image": c
                    });
                    "string" == typeof f && (f = new Function(f));
                    b.isMobile() ? new b.touch(t).addEventListener(b.touchEvents.TAP, function(a) {
                        f(a);
                    }) : t.addEventListener("click", function(a) {
                        f(a);
                        a.preventDefault();
                    });
                    E[g] = {
                        element: t,
                        label: d,
                        divider: h,
                        icon: r
                    };
                    if (d) {
                        var n = new k.overlay(r.id + "_tooltip", w, !0);
                        c = j("div");
                        c.id = r.id + "_label";
                        c.innerHTML = d;
                        a("#" + c.id, {
                            padding: 3
                        });
                        n.setContents(c);
                        if (!b.isMobile()) {
                            var m;
                            t.addEventListener("mouseover", function() {
                                clearTimeout(m);
                                var c = z[g], d, j;
                                d = e(E[g].icon);
                                c.offsetX(0);
                                j = e(q);
                                a("#" + c.element().id, {
                                    left: d.left - j.left + d.width / 2
                                });
                                d = e(c.element());
                                j.left > d.left && c.offsetX(j.left - d.left + 8);
                                n.show();
                                b.foreach(z, function(a, b) {
                                    a != g && b.hide();
                                });
                            }, !1);
                            t.addEventListener("mouseout", function() {
                                m = setTimeout(n.hide, 100);
                            }, !1);
                            q.appendChild(n.element());
                            z[g] = n;
                        }
                    }
                    l++;
                    B();
                }
            };
            C.removeButton = function(a) {
                if (E[a]) {
                    H.removeChild(E[a].element);
                    H.removeChild(E[a].divider);
                    var b = document.getElementById("" + p + "_" + a + "_tooltip");
                    b && q.removeChild(b);
                    delete E[a];
                    l--;
                    B();
                }
            };
            C.numButtons = function() {
                return l;
            };
            C.visible = !1;
            q = j("div", "jwdock");
            H = j("div", "jwdockbuttons");
            q.appendChild(H);
            q.id = p;
            var r = n("button"), K = n("buttonOver"), t = n("buttonActive");
            r && (a(u(), {
                height: r.height,
                padding: y.margin
            }), a(g, {
                height: r.height
            }), a(u("div.button"), b.extend(s(r), {
                width: r.width,
                cursor: "pointer",
                border: d
            })), a(u("div.button:hover"), s(K)), a(u("div.button:active"), s(t)), a(u("div.button>div"), {
                opacity: y.iconalpha
            }), a(u("div.button:hover>div"), {
                opacity: y.iconalphaover
            }), a(u("div.button:active>div"), {
                opacity: y.iconalphaactive
            }), a(u(".jwoverlay"), {
                top: y.margin + r.height
            }), v("capLeft", H), v("capRight", H), v("divider"));
            setTimeout(function() {
                e(q);
            });
        };
        a(".jwdock", {
            opacity: 0,
            display: d
        });
        a(".jwdock > *", {
            height: "100%",
            "float": "left"
        });
        a(".jwdock > .jwoverlay", {
            height: "auto",
            "float": d,
            "z-index": 99
        });
        a(g + " div.button", {
            position: "relative"
        });
        a(g + " > *", {
            height: "100%",
            "float": "left"
        });
        a(g + " .divider", {
            display: d
        });
        a(g + " div.button ~ .divider", {
            display: f
        });
        a(g + " .capLeft, " + g + " .capRight", {
            display: d
        });
        a(g + " .capRight", {
            "float": "right"
        });
        a(g + " div.button > div", {
            left: 0,
            right: 0,
            top: 0,
            bottom: 0,
            margin: 5,
            position: "absolute",
            "background-position": "center",
            "background-repeat": "no-repeat"
        });
        b.transitionStyle(".jwdock", "background .25s, opacity .25s");
        b.transitionStyle(".jwdock .jwoverlay", "opacity .25s");
        b.transitionStyle(g + " div.button div", "opacity .25s");
    })(jwplayer);
    (function(h) {
        var k = h.html5, b = h.utils, a = h.events, e = a.state, g = h.playlist;
        k.instream = function(c, d, f, h) {
            function m(a) {
                B(a.type, a);
                I && c.jwInstreamDestroy(!1, x);
            }
            function s(a) {
                B(a.type, a);
                j();
            }
            function v(a) {
                B(a.type, a);
            }
            function u() {
                A && A.releaseState(x.jwGetState());
                t.play();
            }
            function j() {
                if (l && E + 1 < l.length) {
                    E++;
                    var d = l[E];
                    w = new g.item(d);
                    I.setPlaylist([ d ]);
                    var e;
                    z && (e = z[E]);
                    q = b.extend(p, e);
                    t.load(I.playlist[0]);
                    H.reset(q.skipoffset || -1);
                    P = setTimeout(function() {
                        B(a.JWPLAYER_PLAYLIST_ITEM, {
                            index: E
                        }, !0);
                    }, 0);
                } else P = setTimeout(function() {
                    B(a.JWPLAYER_PLAYLIST_COMPLETE, {}, !0);
                    c.jwInstreamDestroy(!0, x);
                }, 0);
            }
            function n(a) {
                a.width && a.height && (A && A.releaseState(x.jwGetState()), f.resizeMedia());
            }
            function B(a, b) {
                b = b || {};
                p.tag && !b.tag && (b.tag = p.tag);
                x.sendEvent(a, b);
            }
            function y() {
                G && G.redraw();
                A && A.redraw();
            }
            var p = {
                controlbarseekable: "never",
                controlbarpausable: !0,
                controlbarstoppable: !0,
                loadingmessage: "Loading ad",
                playlistclickable: !0,
                skipoffset: null,
                tag: null
            }, w, l, E = 0, z, q = {
                controlbarseekable: "never",
                controlbarpausable: !1,
                controlbarstoppable: !1
            }, H, J, C, r, K, t, G, A, L, I, P = -1, x = b.extend(this, new a.eventdispatcher());
            c.jwAddEventListener(a.JWPLAYER_RESIZE, y);
            c.jwAddEventListener(a.JWPLAYER_FULLSCREEN, function(a) {
                y();
                !a.fullscreen && b.isIPad() && (I.state === e.PAUSED ? A.show(!0) : I.state === e.PLAYING && A.hide());
            });
            x.init = function() {
                J = h.detachMedia();
                t = new k.video(J, "instream");
                t.addGlobalListener(v);
                t.addEventListener(a.JWPLAYER_MEDIA_META, n);
                t.addEventListener(a.JWPLAYER_MEDIA_COMPLETE, j);
                t.addEventListener(a.JWPLAYER_MEDIA_BUFFER_FULL, u);
                t.addEventListener(a.JWPLAYER_MEDIA_ERROR, m);
                t.addEventListener(a.JWPLAYER_MEDIA_TIME, function(a) {
                    H && H.updateSkipTime(a.position, a.duration);
                });
                t.attachMedia();
                t.mute(d.mute);
                t.volume(d.volume);
                I = new k.model({}, t);
                I.setVolume(d.volume);
                I.setMute(d.mute);
                K = d.playlist[d.item];
                C = J.currentTime;
                h.checkBeforePlay() || 0 === C ? (C = 0, r = e.PLAYING) : r = c.jwGetState() === e.IDLE || d.getVideo().checkComplete() ? e.IDLE : e.PLAYING;
                r == e.PLAYING && J.pause();
                A = new k.display(x);
                A.forceState(e.BUFFERING);
                L = document.createElement("div");
                L.id = x.id + "_instream_container";
                b.css.style(L, {
                    width: "100%",
                    height: "100%"
                });
                L.appendChild(A.element());
                G = new k.controlbar(x);
                G.instreamMode(!0);
                L.appendChild(G.element());
                c.jwGetControls() ? (G.show(), A.show()) : (G.hide(), A.hide());
                f.setupInstream(L, G, A, I);
                y();
                x.jwInstreamSetText(p.loadingmessage);
            };
            x.load = function(d, j) {
                if (b.isAndroid(2.3)) m({
                    type: a.JWPLAYER_ERROR,
                    message: "Error loading instream: Cannot play instream on Android 2.3"
                }); else {
                    B(a.JWPLAYER_PLAYLIST_ITEM, {
                        index: E
                    }, !0);
                    var h = 10 + b.bounds(L.parentNode).bottom - b.bounds(G.element()).top;
                    "array" === b.typeOf(d) && (j && (z = j, j = j[E]), l = d, d = l[E]);
                    q = b.extend(p, j);
                    w = new g.item(d);
                    I.setPlaylist([ d ]);
                    H = new k.adskipbutton(c.id, h, q.skipMessage, q.skipText);
                    H.addEventListener(a.JWPLAYER_AD_SKIPPED, s);
                    H.reset(q.skipoffset || -1);
                    c.jwGetControls() ? H.show() : H.hide();
                    h = H.element();
                    L.appendChild(h);
                    I.addEventListener(a.JWPLAYER_ERROR, m);
                    A.setAlternateClickHandler(function(d) {
                        d = d || {};
                        d.hasControls = !!c.jwGetControls();
                        B(a.JWPLAYER_INSTREAM_CLICK, d);
                        d.hasControls ? I.state === e.PAUSED ? x.jwInstreamPlay() : x.jwInstreamPause() : b.isAndroid() && I.state !== e.PAUSED && x.jwInstreamPause();
                    });
                    b.isMSIE() && J.parentElement.addEventListener("click", A.clickHandler);
                    f.addEventListener(a.JWPLAYER_AD_SKIPPED, s);
                    t.load(I.playlist[0]);
                }
            };
            x.jwInstreamDestroy = function(c) {
                if (I) {
                    clearTimeout(P);
                    P = -1;
                    t.detachMedia();
                    h.attachMedia();
                    if (r !== e.IDLE) {
                        var j = b.extend({}, K);
                        j.starttime = C;
                        d.getVideo().load(j);
                    } else d.getVideo().stop();
                    x.resetEventListeners();
                    t.resetEventListeners();
                    I.resetEventListeners();
                    if (G) try {
                        G.element().parentNode.removeChild(G.element());
                    } catch (g) {}
                    A && (J && J.parentElement && J.parentElement.removeEventListener("click", A.clickHandler), 
                    A.revertAlternateClickHandler());
                    B(a.JWPLAYER_INSTREAM_DESTROYED, {
                        reason: c ? "complete" : "destroyed"
                    }, !0);
                    r == e.PLAYING && J.play();
                    f.destroyInstream(t.audioMode());
                    I = null;
                }
            };
            x.jwInstreamAddEventListener = function(a, b) {
                x.addEventListener(a, b);
            };
            x.jwInstreamRemoveEventListener = function(a, b) {
                x.removeEventListener(a, b);
            };
            x.jwInstreamPlay = function() {
                t.play(!0);
                d.state = e.PLAYING;
                A.show();
            };
            x.jwInstreamPause = function() {
                t.pause(!0);
                d.state = e.PAUSED;
                c.jwGetControls() && A.show();
            };
            x.jwInstreamSeek = function(a) {
                t.seek(a);
            };
            x.jwInstreamSetText = function(a) {
                G.setText(a);
            };
            x.jwInstreamState = function() {
                return d.state;
            };
            x.setControls = function(a) {
                a ? H.show() : H.hide();
            };
            x.jwPlay = function() {
                "true" == q.controlbarpausable.toString().toLowerCase() && x.jwInstreamPlay();
            };
            x.jwPause = function() {
                "true" == q.controlbarpausable.toString().toLowerCase() && x.jwInstreamPause();
            };
            x.jwStop = function() {
                "true" == q.controlbarstoppable.toString().toLowerCase() && (c.jwInstreamDestroy(!1, x), 
                c.jwStop());
            };
            x.jwSeek = function(a) {
                switch (q.controlbarseekable.toLowerCase()) {
                  case "always":
                    x.jwInstreamSeek(a);
                    break;

                  case "backwards":
                    I.position > a && x.jwInstreamSeek(a);
                }
            };
            x.jwSeekDrag = function(a) {
                I.seekDrag(a);
            };
            x.jwGetPosition = function() {};
            x.jwGetDuration = function() {};
            x.jwGetWidth = c.jwGetWidth;
            x.jwGetHeight = c.jwGetHeight;
            x.jwGetFullscreen = c.jwGetFullscreen;
            x.jwSetFullscreen = c.jwSetFullscreen;
            x.jwGetVolume = function() {
                return d.volume;
            };
            x.jwSetVolume = function(a) {
                I.setVolume(a);
                c.jwSetVolume(a);
            };
            x.jwGetMute = function() {
                return d.mute;
            };
            x.jwSetMute = function(a) {
                I.setMute(a);
                c.jwSetMute(a);
            };
            x.jwGetState = function() {
                return !I ? e.IDLE : I.state;
            };
            x.jwGetPlaylist = function() {
                return [ w ];
            };
            x.jwGetPlaylistIndex = function() {
                return 0;
            };
            x.jwGetStretching = function() {
                return d.config.stretching;
            };
            x.jwAddEventListener = function(a, b) {
                x.addEventListener(a, b);
            };
            x.jwRemoveEventListener = function(a, b) {
                x.removeEventListener(a, b);
            };
            x.jwSetCurrentQuality = function() {};
            x.jwGetQualityLevels = function() {
                return [];
            };
            x.jwGetControls = function() {
                return c.jwGetControls();
            };
            x.skin = c.skin;
            x.id = c.id + "_instream";
            return x;
        };
    })(window.jwplayer);
    (function(h) {
        var k = h.utils, b = k.css, a = h.events.state, e = h.html5.logo = function(g, c) {
            function d(b) {
                k.exists(b) && b.stopPropagation && b.stopPropagation();
                if (!u || !m.link) f.jwGetState() == a.IDLE || f.jwGetState() == a.PAUSED ? f.jwPlay() : f.jwPause();
                u && m.link && (f.jwPause(), f.jwSetFullscreen(!1), window.open(m.link, m.linktarget));
            }
            var f = g, D = f.id + "_logo", m, s, v = e.defaults, u = !1;
            this.resize = function() {};
            this.element = function() {
                return s;
            };
            this.offset = function(a) {
                b("#" + D + " ", {
                    "margin-bottom": a
                });
            };
            this.position = function() {
                return m.position;
            };
            this.margin = function() {
                return parseInt(m.margin);
            };
            this.hide = function(a) {
                if (m.hide || a) u = !1, s.style.visibility = "hidden", s.style.opacity = 0;
            };
            this.show = function() {
                u = !0;
                s.style.visibility = "visible";
                s.style.opacity = 1;
            };
            var j = "o";
            f.edition && (j = f.edition(), j = "pro" == j ? "p" : "premium" == j ? "r" : "ads" == j ? "a" : "free" == j ? "f" : "o");
            if ("o" == j || "f" == j) v.link = "http://www.longtailvideo.com/jwpabout/?a=l&v=" + h.version + "&m=h&e=" + j;
            m = k.extend({}, v, c);
            m.hide = "true" == m.hide.toString();
            s = document.createElement("img");
            s.className = "jwlogo";
            s.id = D;
            if (m.file) {
                var v = /(\w+)-(\w+)/.exec(m.position), j = {}, n = m.margin;
                3 == v.length ? (j[v[1]] = n, j[v[2]] = n) : j.top = j.right = n;
                b("#" + D + " ", j);
                s.src = (m.prefix ? m.prefix : "") + m.file;
                k.isMobile() ? new k.touch(s).addEventListener(k.touchEvents.TAP, d) : s.onclick = d;
            } else s.style.display = "none";
            return this;
        };
        e.defaults = {
            prefix: k.repo(),
            file: "logo.png",
            linktarget: "_top",
            margin: 8,
            hide: !1,
            position: "top-right"
        };
        b(".jwlogo", {
            cursor: "pointer",
            position: "absolute"
        });
    })(jwplayer);
    (function(h) {
        var k = h.html5, b = h.utils, a = b.css;
        k.menu = function(e, g, c, d) {
            function f(a) {
                return !a || !a.src ? {} : {
                    background: "url(" + a.src + ") no-repeat left",
                    "background-size": a.width + "px " + a.height + "px"
                };
            }
            function h(a, b) {
                return function() {
                    B(a);
                    v && v(b);
                };
            }
            function m(a, b) {
                var c = document.createElement("div");
                a && (c.className = a);
                b && b.appendChild(c);
                return c;
            }
            function s(a) {
                return (a = c.getSkinElement("tooltip", a)) ? a : {
                    width: 0,
                    height: 0,
                    src: void 0
                };
            }
            var v = d, u = new k.overlay(g + "_overlay", c);
            d = b.extend({
                fontcase: void 0,
                fontcolor: "#cccccc",
                fontsize: 11,
                fontweight: void 0,
                activecolor: "#ffffff",
                overcolor: "#ffffff"
            }, c.getComponentSettings("tooltip"));
            var j, n = [];
            this.element = function() {
                return u.element();
            };
            this.addOption = function(a, c) {
                var d = m("jwoption", j);
                d.id = g + "_option_" + c;
                d.innerHTML = a;
                b.isMobile() ? new b.touch(d).addEventListener(b.touchEvents.TAP, h(n.length, c)) : d.addEventListener("click", h(n.length, c));
                n.push(d);
            };
            this.clearOptions = function() {
                for (;0 < n.length; ) j.removeChild(n.pop());
            };
            var B = this.setActive = function(a) {
                for (var b = 0; b < n.length; b++) {
                    var c = n[b];
                    c.className = c.className.replace(" active", "");
                    b == a && (c.className += " active");
                }
            };
            this.show = u.show;
            this.hide = u.hide;
            this.offsetX = u.offsetX;
            this.positionX = u.positionX;
            this.constrainX = u.constrainX;
            j = m("jwmenu");
            j.id = g;
            var y = s("menuTop" + e);
            e = s("menuOption");
            var p = s("menuOptionOver"), w = s("menuOptionActive");
            if (y && y.image) {
                var l = new Image();
                l.src = y.src;
                l.width = y.width;
                l.height = y.height;
                j.appendChild(l);
            }
            e && (y = "#" + g + " .jwoption", a(y, b.extend(f(e), {
                height: e.height,
                color: d.fontcolor,
                "padding-left": e.width,
                font: d.fontweight + " " + d.fontsize + "px Arial,Helvetica,sans-serif",
                "line-height": e.height,
                "text-transform": "upper" == d.fontcase ? "uppercase" : void 0
            })), a(y + ":hover", b.extend(f(p), {
                color: d.overcolor
            })), a(y + ".active", b.extend(f(w), {
                color: d.activecolor
            })));
            u.setContents(j);
        };
        a("." + "jwmenu jwoption".replace(/ /g, " ."), {
            cursor: "pointer",
            "white-space": "nowrap",
            position: "relative"
        });
    })(jwplayer);
    (function(h) {
        var k = h.html5, b = h.utils, a = h.events;
        k.model = function(e, g) {
            function c(a) {
                var b = u[a.type];
                if (b && b.length) {
                    for (var c = !1, e = 0; e < b.length; e++) {
                        var j = b[e].split("->"), g = j[0], j = j[1] || g;
                        d[j] !== a[g] && (d[j] = a[g], c = !0);
                    }
                    c && d.sendEvent(a.type, a);
                } else d.sendEvent(a.type, a);
            }
            var d = this, f, D = {
                html5: g || new k.video(null, "default")
            }, m = b.getCookies(), s = {
                controlbar: {},
                display: {}
            }, v = {
                autostart: !1,
                controls: !0,
                fullscreen: !1,
                height: 320,
                mobilecontrols: !1,
                mute: !1,
                playlist: [],
                playlistposition: "none",
                playlistsize: 180,
                playlistlayout: "extended",
                repeat: !1,
                stretching: b.stretching.UNIFORM,
                width: 480,
                volume: 90
            }, u = {};
            u[a.JWPLAYER_MEDIA_MUTE] = [ "mute" ];
            u[a.JWPLAYER_MEDIA_VOLUME] = [ "volume" ];
            u[a.JWPLAYER_PLAYER_STATE] = [ "newstate->state" ];
            u[a.JWPLAYER_MEDIA_BUFFER] = [ "bufferPercent->buffer" ];
            u[a.JWPLAYER_MEDIA_TIME] = [ "position", "duration" ];
            d.setVideo = function(a) {
                if (a !== f) {
                    if (f) {
                        f.removeGlobalListener(c);
                        var b = f.getContainer();
                        b && (f.remove(), a.setContainer(b));
                    }
                    f = a;
                    f.volume(d.volume);
                    f.mute(d.mute);
                    f.addGlobalListener(c);
                }
            };
            d.destroy = function() {
                f && (f.removeGlobalListener(c), f.destroy());
            };
            d.getVideo = function() {
                return f;
            };
            d.seekDrag = function(a) {
                f.seekDrag(a);
            };
            d.setFullscreen = function(b) {
                b = !!b;
                b != d.fullscreen && (d.fullscreen = b, d.sendEvent(a.JWPLAYER_FULLSCREEN, {
                    fullscreen: b
                }));
            };
            d.setPlaylist = function(c) {
                d.playlist = b.filterPlaylist(c, !1, d.androidhls);
                0 === d.playlist.length ? d.sendEvent(a.JWPLAYER_ERROR, {
                    message: "Error loading playlist: No playable sources found"
                }) : (d.sendEvent(a.JWPLAYER_PLAYLIST_LOADED, {
                    playlist: h(d.id).getPlaylist()
                }), d.item = -1, d.setItem(0));
            };
            d.setItem = function(c) {
                var e = !1;
                c == d.playlist.length || -1 > c ? (c = 0, e = !0) : c = -1 == c || c > d.playlist.length ? d.playlist.length - 1 : c;
                if (e || c !== d.item) {
                    d.item = c;
                    d.sendEvent(a.JWPLAYER_PLAYLIST_ITEM, {
                        index: d.item
                    });
                    e = d.playlist[c];
                    c = D.html5;
                    if (d.playlist.length) {
                        var j = e.sources[0];
                        if ("youtube" === j.type || b.isYouTube(j.file)) c = D.youtube, c !== f && (c && c.destroy(), 
                        c = D.youtube = new k.youtube(d.id));
                    }
                    d.setVideo(c);
                    c.init && c.init(e);
                }
            };
            d.setVolume = function(e) {
                d.mute && 0 < e && d.setMute(!1);
                e = Math.round(e);
                d.mute || b.saveCookie("volume", e);
                c({
                    type: a.JWPLAYER_MEDIA_VOLUME,
                    volume: e
                });
                f.volume(e);
            };
            d.setMute = function(e) {
                b.exists(e) || (e = !d.mute);
                b.saveCookie("mute", e);
                c({
                    type: a.JWPLAYER_MEDIA_MUTE,
                    mute: e
                });
                f.mute(e);
            };
            d.componentConfig = function(a) {
                return s[a];
            };
            b.extend(d, new a.eventdispatcher());
            var j = d, n = b.extend({}, v, m, e);
            b.foreach(n, function(a, c) {
                n[a] = b.serialize(c);
            });
            j.config = n;
            b.extend(d, {
                id: e.id,
                state: a.state.IDLE,
                duration: -1,
                position: 0,
                buffer: 0
            }, d.config);
            d.playlist = [];
            d.setItem(0);
        };
    })(jwplayer);
    (function(h) {
        var k = h.utils, b = k.css, a = k.transitionStyle, e = "top", g = "bottom", c = "right", d = "left", f = document, D = {
            fontcase: void 0,
            fontcolor: "#ffffff",
            fontsize: 12,
            fontweight: void 0,
            activecolor: "#ffffff",
            overcolor: "#ffffff"
        };
        h.html5.overlay = function(a, h, v) {
            function u(a) {
                return "#" + w + (a ? " ." + a : "");
            }
            function j(a, b) {
                var c = f.createElement("div");
                a && (c.className = a);
                b && b.appendChild(c);
                return c;
            }
            function n(a, c) {
                var d;
                d = (d = l.getSkinElement("tooltip", a)) ? d : {
                    width: 0,
                    height: 0,
                    src: "",
                    image: void 0,
                    ready: !1
                };
                var e = j(c, z);
                b.style(e, B(d));
                return [ e, d ];
            }
            function B(a) {
                return {
                    background: "url(" + a.src + ") center",
                    "background-size": a.width + "px " + a.height + "px"
                };
            }
            function y(a, j) {
                j || (j = "");
                var f = n("cap" + a + j, "jwborder jw" + a + (j ? j : "")), h = f[0], f = f[1], q = k.extend(B(f), {
                    width: a == d || j == d || a == c || j == c ? f.width : void 0,
                    height: a == e || j == e || a == g || j == g ? f.height : void 0
                });
                q[a] = a == g && !E || a == e && E ? H.height : 0;
                j && (q[j] = 0);
                b.style(h, q);
                h = {};
                q = {};
                f = {
                    left: f.width,
                    right: f.width,
                    top: (E ? H.height : 0) + f.height,
                    bottom: (E ? 0 : H.height) + f.height
                };
                j && (h[j] = f[j], h[a] = 0, q[a] = f[a], q[j] = 0, b(u("jw" + a), h), b(u("jw" + j), q), 
                C[a] = f[a], C[j] = f[j]);
            }
            var p = this, w = a, l = h, E = v, z, q, H, J;
            a = k.extend({}, D, l.getComponentSettings("tooltip"));
            var C = {};
            p.element = function() {
                return z;
            };
            p.setContents = function(a) {
                k.empty(q);
                q.appendChild(a);
            };
            p.positionX = function(a) {
                b.style(z, {
                    left: Math.round(a)
                });
            };
            p.constrainX = function(a, c) {
                if (p.showing && 0 !== a.width && p.offsetX(0)) {
                    c && b.unblock();
                    var d = k.bounds(z);
                    0 !== d.width && (d.right > a.right ? p.offsetX(a.right - d.right) : d.left < a.left && p.offsetX(a.left - d.left));
                }
            };
            p.offsetX = function(a) {
                a = Math.round(a);
                var c = z.clientWidth;
                0 !== c && (b.style(z, {
                    "margin-left": Math.round(-c / 2) + a
                }), b.style(J, {
                    "margin-left": Math.round(-H.width / 2) - a
                }));
                return c;
            };
            p.borderWidth = function() {
                return C.left;
            };
            p.show = function() {
                p.showing = !0;
                b.style(z, {
                    opacity: 1,
                    visibility: "visible"
                });
            };
            p.hide = function() {
                p.showing = !1;
                b.style(z, {
                    opacity: 0,
                    visibility: "hidden"
                });
            };
            z = j(".jwoverlay".replace(".", ""));
            z.id = w;
            h = n("arrow", "jwarrow");
            J = h[0];
            H = h[1];
            b.style(J, {
                position: "absolute",
                bottom: E ? void 0 : 0,
                top: E ? 0 : void 0,
                width: H.width,
                height: H.height,
                left: "50%"
            });
            y(e, d);
            y(g, d);
            y(e, c);
            y(g, c);
            y(d);
            y(c);
            y(e);
            y(g);
            h = n("background", "jwback");
            b.style(h[0], {
                left: C.left,
                right: C.right,
                top: C.top,
                bottom: C.bottom
            });
            q = j("jwcontents", z);
            b(u("jwcontents") + " *", {
                color: a.fontcolor,
                font: a.fontweight + " " + a.fontsize + "px Arial,Helvetica,sans-serif",
                "text-transform": "upper" == a.fontcase ? "uppercase" : void 0
            });
            E && k.transform(u("jwarrow"), "rotate(180deg)");
            b.style(z, {
                padding: C.top + 1 + "px " + C.right + "px " + (C.bottom + 1) + "px " + C.left + "px"
            });
            p.showing = !1;
        };
        b(".jwoverlay", {
            position: "absolute",
            visibility: "hidden",
            opacity: 0
        });
        b(".jwoverlay .jwcontents", {
            position: "relative",
            "z-index": 1
        });
        b(".jwoverlay .jwborder", {
            position: "absolute",
            "background-size": "100% 100%"
        }, !0);
        b(".jwoverlay .jwback", {
            position: "absolute",
            "background-size": "100% 100%"
        });
        a(".jwoverlay", "opacity .25s, visibility .25s");
    })(jwplayer);
    (function(h) {
        var k = h.html5, b = h.utils;
        k.player = function(a) {
            function e() {
                for (var a = D.playlist, b = [], c = 0; c < a.length; c++) b.push(g(a[c]));
                return b;
            }
            function g(a) {
                var c = {
                    description: a.description,
                    file: a.file,
                    image: a.image,
                    mediaid: a.mediaid,
                    title: a.title
                };
                b.foreach(a, function(a, b) {
                    c[a] = b;
                });
                c.sources = [];
                c.tracks = [];
                0 < a.sources.length && b.foreach(a.sources, function(a, b) {
                    c.sources.push({
                        file: b.file,
                        type: b.type ? b.type : void 0,
                        label: b.label,
                        "default": b["default"] ? !0 : !1
                    });
                });
                0 < a.tracks.length && b.foreach(a.tracks, function(a, b) {
                    c.tracks.push({
                        file: b.file,
                        kind: b.kind ? b.kind : void 0,
                        label: b.label,
                        "default": b["default"] ? !0 : !1
                    });
                });
                !a.file && 0 < a.sources.length && (c.file = a.sources[0].file);
                return c;
            }
            function c() {
                f.jwPlay = s.play;
                f.jwPause = s.pause;
                f.jwStop = s.stop;
                f.jwSeek = s.seek;
                f.jwSetVolume = s.setVolume;
                f.jwSetMute = s.setMute;
                f.jwLoad = function(a) {
                    s.load(a);
                };
                f.jwPlaylistNext = s.next;
                f.jwPlaylistPrev = s.prev;
                f.jwPlaylistItem = s.item;
                f.jwSetFullscreen = s.setFullscreen;
                f.jwResize = m.resize;
                f.jwSeekDrag = D.seekDrag;
                f.jwGetQualityLevels = s.getQualityLevels;
                f.jwGetCurrentQuality = s.getCurrentQuality;
                f.jwSetCurrentQuality = s.setCurrentQuality;
                f.jwGetCaptionsList = s.getCaptionsList;
                f.jwGetCurrentCaptions = s.getCurrentCaptions;
                f.jwSetCurrentCaptions = s.setCurrentCaptions;
                f.jwGetSafeRegion = m.getSafeRegion;
                f.jwForceState = m.forceState;
                f.jwReleaseState = m.releaseState;
                f.jwGetPlaylistIndex = d("item");
                f.jwGetPosition = d("position");
                f.jwGetDuration = d("duration");
                f.jwGetBuffer = d("buffer");
                f.jwGetWidth = d("width");
                f.jwGetHeight = d("height");
                f.jwGetFullscreen = d("fullscreen");
                f.jwGetVolume = d("volume");
                f.jwGetMute = d("mute");
                f.jwGetState = d("state");
                f.jwGetStretching = d("stretching");
                f.jwGetPlaylist = e;
                f.jwGetControls = d("controls");
                f.jwDetachMedia = s.detachMedia;
                f.jwAttachMedia = s.attachMedia;
                f.jwPlayAd = function(a) {
                    var b = h(f.id).plugins;
                    b.vast && b.vast.jwPlayAd(a);
                };
                f.jwPauseAd = function() {
                    var a = h(f.id).plugins;
                    a.googima && a.googima.jwPauseAd();
                };
                f.jwDestroyGoogima = function() {
                    var a = h(f.id).plugins;
                    a.googima && a.googima.jwDestroyGoogima();
                };
                f.jwInitInstream = function() {
                    f.jwInstreamDestroy();
                    u = new k.instream(f, D, m, s);
                    u.init();
                };
                f.jwLoadItemInstream = function(a, b) {
                    if (!u) throw "Instream player undefined";
                    u.load(a, b);
                };
                f.jwLoadArrayInstream = function(a, b) {
                    if (!u) throw "Instream player undefined";
                    u.load(a, b);
                };
                f.jwSetControls = function(a) {
                    m.setControls(a);
                    u && u.setControls(a);
                };
                f.jwInstreamPlay = function() {
                    u && u.jwInstreamPlay();
                };
                f.jwInstreamPause = function() {
                    u && u.jwInstreamPause();
                };
                f.jwInstreamState = function() {
                    return u ? u.jwInstreamState() : "";
                };
                f.jwInstreamDestroy = function(a, b) {
                    if (b = b || u) b.jwInstreamDestroy(a || !1), b === u && (u = void 0);
                };
                f.jwInstreamAddEventListener = function(a, b) {
                    u && u.jwInstreamAddEventListener(a, b);
                };
                f.jwInstreamRemoveEventListener = function(a, b) {
                    u && u.jwInstreamRemoveEventListener(a, b);
                };
                f.jwPlayerDestroy = function() {
                    m && m.destroy();
                    D && D.destroy();
                    v && v.resetEventListeners();
                };
                f.jwInstreamSetText = function(a) {
                    u && u.jwInstreamSetText(a);
                };
                f.jwIsBeforePlay = function() {
                    return s.checkBeforePlay();
                };
                f.jwIsBeforeComplete = function() {
                    return D.getVideo().checkComplete();
                };
                f.jwSetCues = m.addCues;
                f.jwAddEventListener = s.addEventListener;
                f.jwRemoveEventListener = s.removeEventListener;
                f.jwDockAddButton = m.addButton;
                f.jwDockRemoveButton = m.removeButton;
            }
            function d(a) {
                return function() {
                    return D[a];
                };
            }
            var f = this, D, m, s, v, u;
            D = new k.model(a);
            f.id = D.id;
            f._model = D;
            b.css.block(f.id);
            m = new k.view(f, D);
            s = new k.controller(D, m);
            c();
            f.initializeAPI = c;
            v = new k.setup(D, m);
            v.addEventListener(h.events.JWPLAYER_READY, function(a) {
                s.playerReady(a);
                b.css.unblock(f.id);
            });
            v.addEventListener(h.events.JWPLAYER_ERROR, function(a) {
                b.log("There was a problem setting up the player: ", a);
                b.css.unblock(f.id);
            });
            v.start();
        };
    })(window.jwplayer);
    (function(h) {
        var k = {
            size: 180,
            backgroundcolor: "#333333",
            fontcolor: "#999999",
            overcolor: "#CCCCCC",
            activecolor: "#CCCCCC",
            titlecolor: "#CCCCCC",
            titleovercolor: "#FFFFFF",
            titleactivecolor: "#FFFFFF",
            fontweight: "normal",
            titleweight: "normal",
            fontsize: 11,
            titlesize: 13
        }, b = jwplayer.events, a = jwplayer.utils, e = a.css, g = a.isMobile(), c = document;
        h.playlistcomponent = function(d, f) {
            function D(a) {
                return "#" + n.id + (a ? " ." + a : "");
            }
            function m(a, b) {
                var d = c.createElement(a);
                b && (d.className = b);
                return d;
            }
            function s(a) {
                return function() {
                    l = a;
                    v.jwPlaylistItem(a);
                    v.jwPlay(!0);
                };
            }
            var v = d, u = v.skin, j = a.extend({}, k, v.skin.getComponentSettings("playlist"), f), n, B, y, p, w = -1, l, E, z = 76, q = {
                background: void 0,
                divider: void 0,
                item: void 0,
                itemOver: void 0,
                itemImage: void 0,
                itemActive: void 0
            }, H, J = this;
            J.element = function() {
                return n;
            };
            J.redraw = function() {
                E && E.redraw();
            };
            J.show = function() {
                a.show(n);
            };
            J.hide = function() {
                a.hide(n);
            };
            n = m("div", "jwplaylist");
            n.id = v.id + "_jwplayer_playlistcomponent";
            H = "basic" == v._model.playlistlayout;
            B = m("div", "jwlistcontainer");
            n.appendChild(B);
            a.foreach(q, function(a) {
                q[a] = u.getSkinElement("playlist", a);
            });
            H && (z = 32);
            q.divider && (z += q.divider.height);
            var C = 0, r = 0, K = 0;
            a.clearCss(D());
            e(D(), {
                "background-color": j.backgroundcolor
            });
            e(D("jwlist"), {
                "background-image": q.background ? " url(" + q.background.src + ")" : ""
            });
            e(D("jwlist *"), {
                color: j.fontcolor,
                font: j.fontweight + " " + j.fontsize + "px Arial, Helvetica, sans-serif"
            });
            q.itemImage ? (C = (z - q.itemImage.height) / 2 + "px ", r = q.itemImage.width, 
            K = q.itemImage.height) : (r = 4 * z / 3, K = z);
            q.divider && e(D("jwplaylistdivider"), {
                "background-image": "url(" + q.divider.src + ")",
                "background-size": "100% " + q.divider.height + "px",
                width: "100%",
                height: q.divider.height
            });
            e(D("jwplaylistimg"), {
                height: K,
                width: r,
                margin: C ? C + "0 " + C + C : "0 5px 0 0"
            });
            e(D("jwlist li"), {
                "background-image": q.item ? "url(" + q.item.src + ")" : "",
                height: z,
                overflow: "hidden",
                "background-size": "100% " + z + "px",
                cursor: "pointer"
            });
            C = {
                overflow: "hidden"
            };
            "" !== j.activecolor && (C.color = j.activecolor);
            q.itemActive && (C["background-image"] = "url(" + q.itemActive.src + ")");
            e(D("jwlist li.active"), C);
            e(D("jwlist li.active .jwtitle"), {
                color: j.titleactivecolor
            });
            e(D("jwlist li.active .jwdescription"), {
                color: j.activecolor
            });
            C = {
                overflow: "hidden"
            };
            "" !== j.overcolor && (C.color = j.overcolor);
            q.itemOver && (C["background-image"] = "url(" + q.itemOver.src + ")");
            g || (e(D("jwlist li:hover"), C), e(D("jwlist li:hover .jwtitle"), {
                color: j.titleovercolor
            }), e(D("jwlist li:hover .jwdescription"), {
                color: j.overcolor
            }));
            e(D("jwtextwrapper"), {
                height: z,
                position: "relative"
            });
            e(D("jwtitle"), {
                overflow: "hidden",
                display: "inline-block",
                height: H ? z : 20,
                color: j.titlecolor,
                "font-size": j.titlesize,
                "font-weight": j.titleweight,
                "margin-top": H ? "0 10px" : 10,
                "margin-left": 10,
                "margin-right": 10,
                "line-height": H ? z : 20
            });
            e(D("jwdescription"), {
                display: "block",
                "font-size": j.fontsize,
                "line-height": 18,
                "margin-left": 10,
                "margin-right": 10,
                overflow: "hidden",
                height: 36,
                position: "relative"
            });
            v.jwAddEventListener(b.JWPLAYER_PLAYLIST_LOADED, function() {
                B.innerHTML = "";
                for (var b = v.jwGetPlaylist(), c = [], d = 0; d < b.length; d++) b[d]["ova.hidden"] || c.push(b[d]);
                if (y = c) {
                    b = m("ul", "jwlist");
                    b.id = n.id + "_ul" + Math.round(1e7 * Math.random());
                    p = b;
                    for (b = 0; b < y.length; b++) {
                        var f = b, c = y[f], d = m("li", "jwitem"), j = void 0;
                        d.id = p.id + "_item_" + f;
                        0 < f ? (j = m("div", "jwplaylistdivider"), d.appendChild(j)) : (f = q.divider ? q.divider.height : 0, 
                        d.style.height = z - f + "px", d.style["background-size"] = "100% " + (z - f) + "px");
                        f = m("div", "jwplaylistimg jwfill");
                        j = void 0;
                        c["playlist.image"] && q.itemImage ? j = c["playlist.image"] : c.image && q.itemImage ? j = c.image : q.itemImage && (j = q.itemImage.src);
                        j && !H && (e("#" + d.id + " .jwplaylistimg", {
                            "background-image": j
                        }), d.appendChild(f));
                        f = m("div", "jwtextwrapper");
                        j = m("span", "jwtitle");
                        j.innerHTML = c && c.title ? c.title : "";
                        f.appendChild(j);
                        c.description && !H && (j = m("span", "jwdescription"), j.innerHTML = c.description, 
                        f.appendChild(j));
                        d.appendChild(f);
                        c = d;
                        g ? new a.touch(c).addEventListener(a.touchEvents.TAP, s(b)) : c.onclick = s(b);
                        p.appendChild(c);
                    }
                    w = v.jwGetPlaylistIndex();
                    B.appendChild(p);
                    E = new h.playlistslider(n.id + "_slider", v.skin, n, p);
                }
            });
            v.jwAddEventListener(b.JWPLAYER_PLAYLIST_ITEM, function(a) {
                0 <= w && (c.getElementById(p.id + "_item_" + w).className = "jwitem", w = a.index);
                c.getElementById(p.id + "_item_" + a.index).className = "jwitem active";
                a = v.jwGetPlaylistIndex();
                a != l && (l = -1, E && E.visible() && E.thumbPosition(a / (v.jwGetPlaylist().length - 1)));
            });
            v.jwAddEventListener(b.JWPLAYER_RESIZE, function() {
                J.redraw();
            });
            return this;
        };
        e(".jwplaylist", {
            position: "absolute",
            width: "100%",
            height: "100%"
        });
        a.dragStyle(".jwplaylist", "none");
        e(".jwplaylist .jwplaylistimg", {
            position: "relative",
            width: "100%",
            "float": "left",
            margin: "0 5px 0 0",
            background: "#000",
            overflow: "hidden"
        });
        e(".jwplaylist .jwlist", {
            position: "absolute",
            width: "100%",
            "list-style": "none",
            margin: 0,
            padding: 0,
            overflow: "hidden"
        });
        e(".jwplaylist .jwlistcontainer", {
            position: "absolute",
            overflow: "hidden",
            width: "100%",
            height: "100%"
        });
        e(".jwplaylist .jwlist li", {
            width: "100%"
        });
        e(".jwplaylist .jwtextwrapper", {
            overflow: "hidden"
        });
        e(".jwplaylist .jwplaylistdivider", {
            position: "absolute"
        });
        g && a.transitionStyle(".jwplaylist .jwlist", "top .35s");
    })(jwplayer.html5);
    (function(h) {
        function k() {
            var a = [], b;
            for (b = 0; b < arguments.length; b++) a.push(".jwplaylist ." + arguments[b]);
            return a.join(",");
        }
        var b = jwplayer.utils, a = b.touchEvents, e = b.css, g = document, c = window;
        h.playlistslider = function(d, f, h, k) {
            function s(a) {
                return "#" + z.id + (a ? " ." + a : "");
            }
            function v(a, b, c, d) {
                var f = g.createElement("div");
                a && (f.className = a, b && e(s(a), {
                    "background-image": b.src ? b.src : void 0,
                    "background-repeat": d ? "repeat-y" : "no-repeat",
                    height: d ? void 0 : b.height
                }));
                c && c.appendChild(f);
                return f;
            }
            function u(a) {
                return (a = l.getSkinElement("playlist", a)) ? a : {
                    width: 0,
                    height: 0,
                    src: void 0
                };
            }
            function j(a) {
                if (t) return a = a ? a : c.event, V(C - (a.detail ? -1 * a.detail : a.wheelDelta / 40) / 10), 
                a.stopPropagation && a.stopPropagation(), a.preventDefault ? a.preventDefault() : a.returnValue = !1, 
                a.cancelBubble = !0, a.cancel = !0, !1;
            }
            function n(a) {
                0 == a.button && (J = !0);
                g.onselectstart = function() {
                    return !1;
                };
                c.addEventListener("mousemove", y, !1);
                c.addEventListener("mouseup", w, !1);
            }
            function B(a) {
                V(C - 2 * a.deltaY / E.clientHeight);
            }
            function y(a) {
                if (J || "click" == a.type) {
                    var c = b.bounds(q), d = H.clientHeight / 2;
                    V((a.pageY - c.top - d) / (c.height - d - d));
                }
            }
            function p(a) {
                return function(b) {
                    0 < b.button || (V(C + .05 * a), r = setTimeout(function() {
                        K = setInterval(function() {
                            V(C + .05 * a);
                        }, 50);
                    }, 500));
                };
            }
            function w() {
                J = !1;
                c.removeEventListener("mousemove", y);
                c.removeEventListener("mouseup", w);
                g.onselectstart = void 0;
                clearTimeout(r);
                clearInterval(K);
            }
            var l = f, E = k, z, q, H, J, C = 0, r, K;
            f = b.isMobile();
            var t = !0, G, A, L, I, P, x, Y, W, X;
            this.element = function() {
                return z;
            };
            this.visible = function() {
                return t;
            };
            var O = this.redraw = function() {
                clearTimeout(X);
                X = setTimeout(function() {
                    if (E && E.clientHeight) {
                        var a = E.parentNode.clientHeight / E.clientHeight;
                        0 > a && (a = 0);
                        1 < a ? t = !1 : (t = !0, e(s("jwthumb"), {
                            height: Math.max(q.clientHeight * a, P.height + x.height)
                        }));
                        e(s(), {
                            visibility: t ? "visible" : "hidden"
                        });
                        E && (E.style.width = t ? E.parentElement.clientWidth - L.width + "px" : "");
                    } else X = setTimeout(O, 10);
                }, 0);
            }, V = this.thumbPosition = function(a) {
                isNaN(a) && (a = 0);
                C = Math.max(0, Math.min(1, a));
                e(s("jwthumb"), {
                    top: Y + (q.clientHeight - H.clientHeight) * C
                });
                k && (k.style.top = Math.min(0, z.clientHeight - k.scrollHeight) * C + "px");
            };
            z = v("jwslider", null, h);
            z.id = d;
            d = new b.touch(E);
            f ? d.addEventListener(a.DRAG, B) : (z.addEventListener("mousedown", n, !1), z.addEventListener("click", y, !1));
            G = u("sliderCapTop");
            A = u("sliderCapBottom");
            L = u("sliderRail");
            d = u("sliderRailCapTop");
            h = u("sliderRailCapBottom");
            I = u("sliderThumb");
            P = u("sliderThumbCapTop");
            x = u("sliderThumbCapBottom");
            Y = G.height;
            W = A.height;
            e(s(), {
                width: L.width
            });
            e(s("jwrail"), {
                top: Y,
                bottom: W
            });
            e(s("jwthumb"), {
                top: Y
            });
            G = v("jwslidertop", G, z);
            A = v("jwsliderbottom", A, z);
            q = v("jwrail", null, z);
            H = v("jwthumb", null, z);
            f || (G.addEventListener("mousedown", p(-1), !1), A.addEventListener("mousedown", p(1), !1));
            v("jwrailtop", d, q);
            v("jwrailback", L, q, !0);
            v("jwrailbottom", h, q);
            e(s("jwrailback"), {
                top: d.height,
                bottom: h.height
            });
            v("jwthumbtop", P, H);
            v("jwthumbback", I, H, !0);
            v("jwthumbbottom", x, H);
            e(s("jwthumbback"), {
                top: P.height,
                bottom: x.height
            });
            O();
            E && !f && (E.addEventListener("mousewheel", j, !1), E.addEventListener("DOMMouseScroll", j, !1));
            return this;
        };
        e(k("jwslider"), {
            position: "absolute",
            height: "100%",
            visibility: "hidden",
            right: 0,
            top: 0,
            cursor: "pointer",
            "z-index": 1,
            overflow: "hidden"
        });
        e(k("jwslider") + " *", {
            position: "absolute",
            width: "100%",
            "background-position": "center",
            "background-size": "100% 100%",
            overflow: "hidden"
        });
        e(k("jwslidertop", "jwrailtop", "jwthumbtop"), {
            top: 0
        });
        e(k("jwsliderbottom", "jwrailbottom", "jwthumbbottom"), {
            bottom: 0
        });
    })(jwplayer.html5);
    (function(h) {
        var k = jwplayer.utils, b = k.css, a = document, e = "none";
        h.rightclick = function(b, c) {
            function d(b) {
                var c = a.createElement("div");
                c.className = b.replace(".", "");
                return c;
            }
            function f() {
                s || (v.style.display = e);
            }
            var D, m = k.extend({
                aboutlink: "http://www.longtailvideo.com/jwpabout/?a=r&v=" + h.version + "&m=h&e=o",
                abouttext: "About JW Player " + h.version + "..."
            }, c), s = !1, v, u;
            this.element = function() {
                return v;
            };
            this.destroy = function() {
                a.removeEventListener("mousedown", f, !1);
            };
            D = a.getElementById(b.id);
            v = d(".jwclick");
            v.id = b.id + "_menu";
            v.style.display = e;
            D.oncontextmenu = function(a) {
                if (!s) {
                    null == a && (a = window.event);
                    var b = null != a.target ? a.target : a.srcElement, c = k.bounds(D), b = k.bounds(b);
                    v.style.display = e;
                    v.style.left = (a.offsetX ? a.offsetX : a.layerX) + b.left - c.left + "px";
                    v.style.top = (a.offsetY ? a.offsetY : a.layerY) + b.top - c.top + "px";
                    v.style.display = "block";
                    a.preventDefault();
                }
            };
            v.onmouseover = function() {
                s = !0;
            };
            v.onmouseout = function() {
                s = !1;
            };
            a.addEventListener("mousedown", f, !1);
            u = d(".jwclick_item");
            u.innerHTML = m.abouttext;
            u.onclick = function() {
                window.top.location = m.aboutlink;
            };
            v.appendChild(u);
            D.appendChild(v);
        };
        b(".jwclick", {
            "background-color": "#FFF",
            "-webkit-border-radius": 5,
            "-moz-border-radius": 5,
            "border-radius": 5,
            height: "auto",
            border: "1px solid #bcbcbc",
            "font-family": '"MS Sans Serif", "Geneva", sans-serif',
            "font-size": 10,
            width: 320,
            "-webkit-box-shadow": "5px 5px 7px rgba(0,0,0,.10), 0px 1px 0px rgba(255,255,255,.3) inset",
            "-moz-box-shadow": "5px 5px 7px rgba(0,0,0,.10), 0px 1px 0px rgba(255,255,255,.3) inset",
            "box-shadow": "5px 5px 7px rgba(0,0,0,.10), 0px 1px 0px rgba(255,255,255,.3) inset",
            position: "absolute",
            "z-index": 999
        }, !0);
        b(".jwclick div", {
            padding: "8px 21px",
            margin: "0px",
            "background-color": "#FFF",
            border: "none",
            "font-family": '"MS Sans Serif", "Geneva", sans-serif',
            "font-size": 10,
            color: "inherit"
        }, !0);
        b(".jwclick_item", {
            padding: "8px 21px",
            "text-align": "left",
            cursor: "pointer"
        }, !0);
        b(".jwclick_item:hover", {
            "background-color": "#595959",
            color: "#FFF"
        }, !0);
        b(".jwclick_item a", {
            "text-decoration": e,
            color: "#000"
        }, !0);
        b(".jwclick hr", {
            width: "100%",
            padding: 0,
            margin: 0,
            border: "1px #e9e9e9 solid"
        }, !0);
    })(jwplayer.html5);
    (function(h) {
        var k = h.html5, b = h.utils, a = h.events, e = 2, g = 4;
        k.setup = function(c, d) {
            function f() {
                for (var a = 0; a < w.length; a++) {
                    var b = w[a], c;
                    a: {
                        if (c = b.depends) {
                            c = c.toString().split(",");
                            for (var d = 0; d < c.length; d++) if (!j[c[d]]) {
                                c = !1;
                                break a;
                            }
                        }
                        c = !0;
                    }
                    if (c) {
                        w.splice(a, 1);
                        try {
                            b.method(), f();
                        } catch (e) {
                            v(e.message);
                        }
                        return;
                    }
                }
                0 < w.length && !y && setTimeout(f, 500);
            }
            function D() {
                j[e] = !0;
            }
            function m(a) {
                v("Error loading skin: " + a);
            }
            function s() {
                p && (p.onload = null, p = p.onerror = null);
                clearTimeout(l);
                j[g] = !0;
            }
            function v(b) {
                y = !0;
                B.sendEvent(a.JWPLAYER_ERROR, {
                    message: b
                });
                u.setupError(b);
            }
            var u = d, j = {}, n, B = new a.eventdispatcher(), y = !1, p, w = [ {
                name: 1,
                method: function() {
                    c.edition && "invalid" == c.edition() ? v("Error setting up player: Invalid license key") : j[1] = !0;
                },
                depends: !1
            }, {
                name: e,
                method: function() {
                    n = new k.skin();
                    n.load(c.config.skin, D, m);
                },
                depends: 1
            }, {
                name: 3,
                method: function() {
                    var a = b.typeOf(c.config.playlist);
                    "array" === a ? (a = new h.playlist(c.config.playlist), c.setPlaylist(a), 0 === c.playlist.length || 0 === c.playlist[0].sources.length ? v("Error loading playlist: No playable sources found") : j[3] = !0) : v("Playlist type not supported: " + a);
                },
                depends: 1
            }, {
                name: g,
                method: function() {
                    var a = c.playlist[c.item].image;
                    a ? (p = new Image(), p.onload = s, p.onerror = s, p.src = a, clearTimeout(l), l = setTimeout(s, 500)) : s();
                },
                depends: 3
            }, {
                name: 5,
                method: function() {
                    u.setup(n);
                    j[5] = !0;
                },
                depends: g + "," + e
            }, {
                name: 6,
                method: function() {
                    j[6] = !0;
                },
                depends: "5,3"
            }, {
                name: 7,
                method: function() {
                    B.sendEvent(a.JWPLAYER_READY);
                    j[7] = !0;
                },
                depends: 6
            } ], l = -1;
            b.extend(this, B);
            this.start = f;
        };
    })(jwplayer);
    (function(h) {
        h.skin = function() {
            var k = {}, b = !1;
            this.load = function(a, e, g) {
                new h.skinloader(a, function(a) {
                    b = !0;
                    k = a;
                    "function" == typeof e && e();
                }, function(a) {
                    "function" == typeof g && g(a);
                });
            };
            this.getSkinElement = function(a, e) {
                a = a.toLowerCase();
                e = e.toLowerCase();
                if (b) try {
                    return k[a].elements[e];
                } catch (g) {
                    jwplayer.utils.log("No such skin component / element: ", [ a, e ]);
                }
                return null;
            };
            this.getComponentSettings = function(a) {
                a = a.toLowerCase();
                return b && k && k[a] ? k[a].settings : null;
            };
            this.getComponentLayout = function(a) {
                a = a.toLowerCase();
                if (b) {
                    var e = k[a].layout;
                    if (e && (e.left || e.right || e.center)) return k[a].layout;
                }
                return null;
            };
        };
    })(jwplayer.html5);
    (function(h) {
        var k = jwplayer.utils, b = k.foreach, a = "Skin formatting error";
        h.skinloader = function(e, g, c) {
            function d(b) {
                u = b;
                k.ajax(k.getAbsolutePath(p), function(b) {
                    try {
                        k.exists(b.responseXML) && D(b.responseXML);
                    } catch (c) {
                        n(a);
                    }
                }, function(a) {
                    n(a);
                });
            }
            function f(a, b) {
                return a ? a.getElementsByTagName(b) : null;
            }
            function D(a) {
                var b = f(a, "skin")[0];
                a = f(b, "component");
                var c = b.getAttribute("target"), b = parseFloat(b.getAttribute("pixelratio"));
                0 < b && (E = b);
                k.versionCheck(c) || n("Incompatible player version");
                if (0 === a.length) j(u); else for (c = 0; c < a.length; c++) {
                    var d = v(a[c].getAttribute("name")), b = {
                        settings: {},
                        elements: {},
                        layout: {}
                    }, e = f(f(a[c], "elements")[0], "element");
                    u[d] = b;
                    for (var g = 0; g < e.length; g++) s(e[g], d);
                    if ((d = f(a[c], "settings")[0]) && 0 < d.childNodes.length) {
                        d = f(d, "setting");
                        for (e = 0; e < d.length; e++) {
                            var g = d[e].getAttribute("name"), h = d[e].getAttribute("value");
                            /color$/.test(g) && (h = k.stringToColor(h));
                            b.settings[v(g)] = h;
                        }
                    }
                    if ((d = f(a[c], "layout")[0]) && 0 < d.childNodes.length) {
                        d = f(d, "group");
                        for (e = 0; e < d.length; e++) {
                            h = d[e];
                            g = {
                                elements: []
                            };
                            b.layout[v(h.getAttribute("position"))] = g;
                            for (var l = 0; l < h.attributes.length; l++) {
                                var p = h.attributes[l];
                                g[p.name] = p.value;
                            }
                            h = f(h, "*");
                            for (l = 0; l < h.length; l++) {
                                p = h[l];
                                g.elements.push({
                                    type: p.tagName
                                });
                                for (var y = 0; y < p.attributes.length; y++) {
                                    var w = p.attributes[y];
                                    g.elements[l][v(w.name)] = w.value;
                                }
                                k.exists(g.elements[l].name) || (g.elements[l].name = p.tagName);
                            }
                        }
                    }
                    B = !1;
                    m();
                }
            }
            function m() {
                clearInterval(y);
                w || (y = setInterval(function() {
                    var a = !0;
                    b(u, function(c, d) {
                        "properties" != c && b(d.elements, function(b) {
                            (u[v(c)] ? u[v(c)].elements[v(b)] : null).ready || (a = !1);
                        });
                    });
                    a && !B && (clearInterval(y), j(u));
                }, 100));
            }
            function s(a, b) {
                b = v(b);
                var c = new Image(), d = v(a.getAttribute("name")), e = a.getAttribute("src");
                if (0 !== e.indexOf("data:image/png;base64,")) var f = k.getAbsolutePath(p), e = [ f.substr(0, f.lastIndexOf("/")), b, e ].join("/");
                u[b].elements[d] = {
                    height: 0,
                    width: 0,
                    src: "",
                    ready: !1,
                    image: c
                };
                c.onload = function() {
                    var a = b, e = u[v(a)] ? u[v(a)].elements[v(d)] : null;
                    e ? (e.height = Math.round(c.height / E * l), e.width = Math.round(c.width / E * l), 
                    e.src = c.src, e.ready = !0, m()) : k.log("Loaded an image for a missing element: " + a + "." + d);
                };
                c.onerror = function() {
                    w = !0;
                    m();
                    n("Skin image not found: " + this.src);
                };
                c.src = e;
            }
            function v(a) {
                return a ? a.toLowerCase() : "";
            }
            var u = {}, j = g, n = c, B = !0, y, p = e, w = !1, l = (jwplayer.utils.isMobile(), 
            1), E = 1;
            "string" != typeof p || "" === p ? D(h.defaultskin()) : "xml" != k.extension(p) ? n("Skin not a valid file type") : new h.skinloader("", d, n);
        };
    })(jwplayer.html5);
    (function(h) {
        var k = h.utils, b = h.events, a = k.css;
        h.html5.thumbs = function(e) {
            function g(a) {
                s = null;
                try {
                    a = new h.parsers.srt().parse(a.responseText, !0);
                } catch (b) {
                    c(b.message);
                    return;
                }
                if ("array" !== k.typeOf(a)) return c("Invalid data");
                D = a;
            }
            function c(a) {
                s = null;
                k.log("Thumbnails could not be loaded: " + a);
            }
            function d(b, c, d) {
                b.onload = null;
                c.width || (c.width = b.width, c.height = b.height);
                c["background-image"] = b.src;
                a.style(f, c);
                d && d(c.width);
            }
            var f, D, m, s, v, u = {}, j, n = new b.eventdispatcher();
            k.extend(this, n);
            f = document.createElement("div");
            f.id = e;
            this.load = function(b) {
                a.style(f, {
                    display: "none"
                });
                s && (s.onload = null, s.onreadystatechange = null, s.onerror = null, s.abort && s.abort(), 
                s = null);
                j && (j.onload = null);
                b ? (m = b.split("?")[0].split("/").slice(0, -1).join("/"), s = k.ajax(b, g, c, !0)) : (D = v = j = null, 
                u = {});
            };
            this.element = function() {
                return f;
            };
            this.updateTimeline = function(a, b) {
                if (D) {
                    for (var e = 0; e < D.length && a > D[e].end; ) e++;
                    e === D.length && e--;
                    e = D[e].text;
                    a: {
                        var f = e;
                        if (f && f !== v) {
                            v = f;
                            0 > f.indexOf("://") && (f = m ? m + "/" + f : f);
                            var g = {
                                display: "block",
                                margin: "0 auto",
                                "background-position": "0 0",
                                width: 0,
                                height: 0
                            };
                            if (0 < f.indexOf("#xywh")) try {
                                var h = /(.+)\#xywh=(\d+),(\d+),(\d+),(\d+)/.exec(f), f = h[1];
                                g["background-position"] = -1 * h[2] + "px " + -1 * h[3] + "px";
                                g.width = h[4];
                                g.height = h[5];
                            } catch (k) {
                                c("Could not parse thumbnail");
                                break a;
                            }
                            var n = u[f];
                            n ? d(n, g, b) : (n = new Image(), n.onload = function() {
                                d(n, g, b);
                            }, u[f] = n, n.src = f);
                            j && (j.onload = null);
                            j = n;
                        }
                    }
                    return e;
                }
            };
        };
    })(jwplayer);
    (function(h) {
        var k = h.jwplayer, b = k.html5, a = k.utils, e = k.events, g = e.state, c = a.css, d = a.bounds, f = a.isMobile(), D = a.isIPad(), m = a.isIPod(), s = document, v = "aspectMode", u = [ "fullscreenchange", "webkitfullscreenchange", "mozfullscreenchange", "MSFullscreenChange" ], j = !0, n = !j, B = "hidden", y = "none", p = "block";
        b.view = function(w, l) {
            function E(b) {
                b = a.between(l.position + b, 0, this.getDuration());
                this.seek(b);
            }
            function z(b) {
                b = a.between(this.getVolume() + b, 0, 100);
                this.setVolume(b);
            }
            function q(a) {
                var b;
                b = a.ctrlKey || a.metaKey ? !1 : l.controls ? !0 : !1;
                if (!b) return !0;
                M.adMode() || (ia(), A());
                b = k(w.id);
                switch (a.keyCode) {
                  case 27:
                    b.setFullscreen(n);
                    break;

                  case 13:
                  case 32:
                    b.play();
                    break;

                  case 37:
                    M.adMode() || E.call(b, -5);
                    break;

                  case 39:
                    M.adMode() || E.call(b, 5);
                    break;

                  case 38:
                    z.call(b, 10);
                    break;

                  case 40:
                    z.call(b, -10);
                    break;

                  case 77:
                    b.setMute();
                    break;

                  case 70:
                    b.setFullscreen();
                    break;

                  default:
                    if (48 <= a.keyCode && 59 >= a.keyCode) {
                        var c = (a.keyCode - 48) / 10 * b.getDuration();
                        b.seek(c);
                    }
                }
                if (/13|32|37|38|39|40/.test(a.keyCode)) return a.preventDefault(), !1;
            }
            function H() {
                var a = !Ha;
                Ha = !1;
                a && ka.sendEvent(e.JWPLAYER_VIEW_TAB_FOCUS, {
                    hasFocus: !0
                });
                M.adMode() || (ia(), A());
            }
            function J() {
                Ha = !1;
                ka.sendEvent(e.JWPLAYER_VIEW_TAB_FOCUS, {
                    hasFocus: !1
                });
            }
            function C() {
                var a = d(N), b = Math.round(a.width), c = Math.round(a.height);
                if (s.body.contains(N)) {
                    if (b && c && (b !== Za || c !== Ka)) Za = b, Ka = c, S && S.redraw(), clearTimeout(sa), 
                    sa = setTimeout(Z, 50), ka.sendEvent(e.JWPLAYER_RESIZE, {
                        width: b,
                        height: c
                    });
                } else h.removeEventListener("resize", C), f && h.removeEventListener("orientationchange", C);
                return a;
            }
            function r(a) {
                a && (a.element().addEventListener("mousemove", I, n), a.element().addEventListener("mouseout", P, n));
            }
            function K() {}
            function t() {
                clearTimeout(Ba);
                Ba = setTimeout(Ca, 10);
            }
            function G(a, b) {
                var c = s.createElement(a);
                b && (c.className = b);
                return c;
            }
            function A() {
                clearTimeout(Ba);
                Ba = setTimeout(Ca, $a);
            }
            function L() {
                clearTimeout(Ba);
                var a = w.jwGetState();
                if (a === g.PLAYING || a === g.PAUSED || T) Da(), ga || (Ba = setTimeout(Ca, $a));
            }
            function I() {
                clearTimeout(Ba);
                ga = j;
            }
            function P() {
                ga = n;
            }
            function x(a) {
                ka.sendEvent(a.type, a);
            }
            function Y() {
                var a = k.cast;
                return a && a.available && a.available();
            }
            function W(a) {
                if (a.done) X(); else {
                    if (!a.complete) {
                        M.adMode() || (M.instreamMode(!0), M.adMode(!0), M.show(!0));
                        M.setText(a.message);
                        var b = a.onClick;
                        void 0 !== b && S.setAlternateClickHandler(function() {
                            b(a);
                        });
                        void 0 !== a.onSkipAd && ca && ca.setSkipoffset(a, a.onSkipAd);
                    }
                    ca && ca.adChanged(a);
                }
            }
            function X() {
                M.setText("");
                M.adMode(!1);
                M.instreamMode(!1);
                M.show(!0);
                ca && (ca.adsEnded(), ca.setState(w.jwGetState()));
                S.revertAlternateClickHandler();
            }
            function O(b, d, e) {
                var f = N.className, g, h, k = w.id + "_view";
                c.block(k);
                if (e = !!e) f = f.replace(/\s*aspectMode/, ""), N.className !== f && (N.className = f), 
                c.style(N, {
                    display: p
                }, e);
                a.exists(b) && a.exists(d) && (l.width = b, l.height = d);
                e = {
                    width: b
                };
                -1 == f.indexOf(v) && (e.height = d);
                c.style(N, e, !0);
                S && S.redraw();
                M && M.redraw(j);
                $ && ($.offset(M && 0 <= $.position().indexOf("bottom") ? M.height() + M.margin() : 0), 
                setTimeout(function() {
                    ea && ea.offset("top-left" == $.position() ? $.element().clientWidth + $.margin() : 0);
                }, 500));
                V(d);
                g = l.playlistsize;
                h = l.playlistposition;
                if (la && g && ("right" == h || "bottom" == h)) la.redraw(), f = {
                    display: p
                }, e = {}, f[h] = 0, e[h] = g, "right" == h ? f.width = g : f.height = g, c.style(Ra, f), 
                c.style(Aa, e);
                Z(b, d);
                c.unblock(k);
            }
            function V(a) {
                var b = d(N);
                da = 0 < a.toString().indexOf("%") || 0 === b.height ? n : "bottom" == l.playlistposition ? b.height <= 40 + l.playlistsize : 40 >= b.height;
                M && (da ? (M.audioMode(j), Da(), S.hidePreview(j), S && S.hide(), Ea(n)) : (M.audioMode(n), 
                Qa(w.jwGetState())));
                $ && da && xa();
                N.style.backgroundColor = da ? "transparent" : "#000";
            }
            function Z(a, b) {
                if (!a || isNaN(Number(a))) {
                    if (!ba) return;
                    a = ba.clientWidth;
                }
                if (!b || isNaN(Number(b))) {
                    if (!ba) return;
                    b = ba.clientHeight;
                }
                l.getVideo().resize(a, b, l.stretching) && (clearTimeout(sa), sa = setTimeout(Z, 250));
            }
            function ha(a) {
                if (a.target === N || N.contains(a.target)) void 0 !== a.jwstate ? a = a.jwstate : Ia ? (a = s.currentFullScreenElement || s.webkitCurrentFullScreenElement || s.mozFullScreenElement || s.msFullscreenElement, 
                a = !!(a && a.id === w.id)) : a = l.getVideo().getFullScreen(), Ia ? ja(N, a) : Ta(a);
            }
            function ja(b, d) {
                a.removeClass(b, "jwfullscreen");
                d ? (a.addClass(b, "jwfullscreen"), c.style(s.body, {
                    "overflow-y": B
                }), A()) : c.style(s.body, {
                    "overflow-y": ""
                });
                M && M.redraw();
                S && S.redraw();
                ea && ea.redraw();
                Z();
                Ta(d);
            }
            function Ta(a) {
                l.setFullscreen(a);
                a ? (clearTimeout(sa), sa = setTimeout(Z, 200)) : D && w.jwGetState() == g.PAUSED && setTimeout(Fa, 500);
            }
            function ia() {
                M && l.controls && (T ? Na.show() : M.show());
            }
            function ya() {
                R !== j && M && !da && !l.getVideo().audioMode() && (T ? Na.hide() : M.hide());
            }
            function Q() {
                ea && !da && l.controls && ea.show();
            }
            function Sa() {
                ea && !aa && !l.getVideo().audioMode() && ea.hide();
            }
            function xa() {
                $ && (!l.getVideo().audioMode() || da) && $.hide(da);
            }
            function Fa() {
                S && l.controls && !da && (!m || w.jwGetState() == g.IDLE) && S.show();
                (!f || !l.fullscreen) && l.getVideo().setControls(n);
            }
            function Ca() {
                clearTimeout(Ba);
                if (R !== j) {
                    Ja = n;
                    var b = w.jwGetState();
                    (!l.controls || b != g.PAUSED) && ya();
                    l.controls || Sa();
                    b != g.IDLE && b != g.PAUSED && (Sa(), xa());
                    a.addClass(N, "jw-user-inactive");
                }
            }
            function Da() {
                if (R !== n) {
                    Ja = j;
                    if (l.controls || da) ia(), Q();
                    rb.hide && $ && !da && $.show();
                    a.removeClass(N, "jw-user-inactive");
                }
            }
            function Ea(a) {
                a = a && !da;
                l.getVideo().setVisibility(a);
            }
            function cb() {
                aa = j;
                wa(n);
                l.controls && Q();
            }
            function vb() {
                ca && ca.setState(w.jwGetState());
            }
            function kb() {}
            function Oa(a) {
                aa = n;
                clearTimeout(eb);
                eb = setTimeout(function() {
                    Qa(a.newstate);
                }, 100);
            }
            function wb() {
                ya();
            }
            function Qa(a) {
                if (l.getVideo().isCaster) S && (S.show(), S.hidePreview(n)), c.style(ba, {
                    visibility: B,
                    opacity: 0
                }), M && (M.show(), M.hideFullscreen(j)); else {
                    switch (a) {
                      case g.PLAYING:
                        R = l.getVideo().isCaster !== j ? null : j;
                        (T ? Ga : l).getVideo().audioMode() ? (Ea(n), S.hidePreview(da), S.setHiding(j), 
                        M && (Da(), M.hideFullscreen(j)), Q()) : (Ea(j), Z(), S.hidePreview(j), M && M.hideFullscreen(!l.getVideo().supportsFullscreen()));
                        break;

                      case g.IDLE:
                        Ea(n);
                        da || (S.hidePreview(n), Fa(), Q(), M && M.hideFullscreen(n));
                        break;

                      case g.BUFFERING:
                        Fa();
                        Ca();
                        f && Ea(j);
                        break;

                      case g.PAUSED:
                        Fa(), Da();
                    }
                    $ && !da && $.show();
                }
            }
            function Wa(a) {
                return "#" + w.id + (a ? " ." + a : "");
            }
            function Xa(a, b) {
                c(a, {
                    display: b ? p : y
                });
            }
            var N, Aa, qa, qb, Ra, Ba = -1, $a = f ? 4e3 : 2e3, ba, Za, Ka, va, Na, Ua, Ga, T = n, M, S, ca, ea, $, rb = a.extend({}, l.componentConfig("logo")), ta, la, da, F = n, Ja = n, R = null, aa, ra, sa = -1, ga = n, Pa, fa, Ia = !1, Ha = !1, ka = a.extend(this, new e.eventdispatcher());
            this.getCurrentCaptions = function() {
                return ta.getCurrentCaptions();
            };
            this.setCurrentCaptions = function(a) {
                ta.setCurrentCaptions(a);
            };
            this.getCaptionsList = function() {
                return ta.getCaptionsList();
            };
            this.setup = function(d) {
                if (!F) {
                    w.skin = d;
                    Aa = G("span", "jwmain");
                    Aa.id = w.id + "_view";
                    ba = G("span", "jwvideo");
                    ba.id = w.id + "_media";
                    qa = G("span", "jwcontrols");
                    va = G("span", "jwinstream");
                    Ra = G("span", "jwplaylistcontainer");
                    qb = G("span", "jwaspect");
                    d = l.height;
                    var q = l.componentConfig("controlbar"), B = l.componentConfig("display");
                    V(d);
                    ta = new b.captions(w, l.captions);
                    ta.addEventListener(e.JWPLAYER_CAPTIONS_LIST, x);
                    ta.addEventListener(e.JWPLAYER_CAPTIONS_CHANGED, x);
                    ta.addEventListener(e.JWPLAYER_CAPTIONS_LOADED, K);
                    qa.appendChild(ta.element());
                    S = new b.display(w, B);
                    S.addEventListener(e.JWPLAYER_DISPLAY_CLICK, function(a) {
                        x(a);
                        f ? Ja ? Ca() : Da() : Oa({
                            newstate: w.jwGetState()
                        });
                        Ja && A();
                    });
                    da && S.hidePreview(j);
                    qa.appendChild(S.element());
                    $ = new b.logo(w, rb);
                    qa.appendChild($.element());
                    ea = new b.dock(w, l.componentConfig("dock"));
                    qa.appendChild(ea.element());
                    w.edition && !f ? ra = new b.rightclick(w, {
                        abouttext: l.abouttext,
                        aboutlink: l.aboutlink
                    }) : f || (ra = new b.rightclick(w, {}));
                    l.playlistsize && l.playlistposition && l.playlistposition != y && (la = new b.playlistcomponent(w, {}), 
                    Ra.appendChild(la.element()));
                    M = new b.controlbar(w, q);
                    M.addEventListener(e.JWPLAYER_USER_ACTION, A);
                    qa.appendChild(M.element());
                    m && ya();
                    Y() && ka.forceControls(j);
                    Aa.appendChild(ba);
                    Aa.appendChild(qa);
                    Aa.appendChild(va);
                    N.appendChild(Aa);
                    N.appendChild(qb);
                    N.appendChild(Ra);
                    l.getVideo().setContainer(ba);
                    l.addEventListener("fullscreenchange", ha);
                    for (d = u.length; d--; ) s.addEventListener(u[d], ha, n);
                    h.removeEventListener("resize", C);
                    h.addEventListener("resize", C, n);
                    f && (h.removeEventListener("orientationchange", C), h.addEventListener("orientationchange", C, n));
                    k(w.id).onAdPlay(function() {
                        M.adMode(!0);
                        Qa(g.PLAYING);
                        A();
                    });
                    k(w.id).onAdSkipped(function() {
                        M.adMode(!1);
                    });
                    k(w.id).onAdComplete(function() {
                        M.adMode(!1);
                    });
                    k(w.id).onAdError(function() {
                        M.adMode(!1);
                    });
                    w.jwAddEventListener(e.JWPLAYER_PLAYER_READY, kb);
                    w.jwAddEventListener(e.JWPLAYER_PLAYER_STATE, Oa);
                    w.jwAddEventListener(e.JWPLAYER_MEDIA_ERROR, wb);
                    w.jwAddEventListener(e.JWPLAYER_PLAYLIST_COMPLETE, cb);
                    w.jwAddEventListener(e.JWPLAYER_PLAYLIST_ITEM, vb);
                    w.jwAddEventListener(e.JWPLAYER_CAST_AVAILABLE, function() {
                        Y() ? ka.forceControls(j) : ka.releaseControls();
                    });
                    w.jwAddEventListener(e.JWPLAYER_CAST_SESSION, function(a) {
                        ca || (ca = new k.html5.castDisplay(w.id), ca.statusDelegate = function(a) {
                            ca.setState(a.newstate);
                        });
                        a.active ? (c.style(ta.element(), {
                            display: "none"
                        }), ka.forceControls(j), ca.setState("connecting").setName(a.deviceName).show(), 
                        w.jwAddEventListener(e.JWPLAYER_PLAYER_STATE, ca.statusDelegate), w.jwAddEventListener(e.JWPLAYER_CAST_AD_CHANGED, W)) : (w.jwRemoveEventListener(e.JWPLAYER_PLAYER_STATE, ca.statusDelegate), 
                        w.jwRemoveEventListener(e.JWPLAYER_CAST_AD_CHANGED, W), ca.hide(), M.adMode() && X(), 
                        c.style(ta.element(), {
                            display: null
                        }), Oa({
                            newstate: w.jwGetState()
                        }), C());
                    });
                    Oa({
                        newstate: g.IDLE
                    });
                    f || (qa.addEventListener("mouseout", t, n), qa.addEventListener("mousemove", L, n), 
                    a.isMSIE() && (ba.addEventListener("mousemove", L, n), ba.addEventListener("click", S.clickHandler)));
                    r(M);
                    r(ea);
                    r($);
                    c("#" + N.id + "." + v + " .jwaspect", {
                        "margin-top": l.aspectratio,
                        display: p
                    });
                    d = a.exists(l.aspectratio) ? parseFloat(l.aspectratio) : 100;
                    q = l.playlistsize;
                    c("#" + N.id + ".playlist-right .jwaspect", {
                        "margin-bottom": -1 * q * (d / 100) + "px"
                    });
                    c("#" + N.id + ".playlist-right .jwplaylistcontainer", {
                        width: q + "px",
                        right: 0,
                        top: 0,
                        height: "100%"
                    });
                    c("#" + N.id + ".playlist-bottom .jwaspect", {
                        "padding-bottom": q + "px"
                    });
                    c("#" + N.id + ".playlist-bottom .jwplaylistcontainer", {
                        width: "100%",
                        height: q + "px",
                        bottom: 0
                    });
                    c("#" + N.id + ".playlist-right .jwmain", {
                        right: q + "px"
                    });
                    c("#" + N.id + ".playlist-bottom .jwmain", {
                        bottom: q + "px"
                    });
                    setTimeout(function() {
                        O(l.width, l.height);
                    }, 0);
                }
            };
            var wa = this.fullscreen = function(b) {
                a.exists(b) || (b = !l.fullscreen);
                b = !!b;
                b !== l.fullscreen && (Ia ? (b ? Pa.apply(N) : fa.apply(s), ja(N, b)) : l.getVideo().setFullScreen(b));
            };
            this.resize = function(a, b) {
                O(a, b, j);
                C();
            };
            this.resizeMedia = Z;
            var La = this.completeSetup = function() {
                c.style(N, {
                    opacity: 1
                });
                h.onbeforeunload = function() {
                    l.getVideo().isCaster || w.jwStop();
                };
            }, eb;
            this.setupInstream = function(a, b, d, e) {
                c.unblock();
                Xa(Wa("jwinstream"), j);
                Xa(Wa("jwcontrols"), n);
                va.appendChild(a);
                Na = b;
                Ua = d;
                Ga = e;
                Oa({
                    newstate: g.PLAYING
                });
                T = j;
                va.addEventListener("mousemove", L);
                va.addEventListener("mouseout", t);
            };
            this.destroyInstream = function() {
                c.unblock();
                Xa(Wa("jwinstream"), n);
                Xa(Wa("jwcontrols"), j);
                va.innerHTML = "";
                va.removeEventListener("mousemove", L);
                va.removeEventListener("mouseout", t);
                T = n;
            };
            this.setupError = function(a) {
                F = j;
                k.embed.errorScreen(N, a, l);
                La();
            };
            this.addButton = function(a, b, c, d) {
                ea && (ea.addButton(a, b, c, d), w.jwGetState() == g.IDLE && Q());
            };
            this.removeButton = function(a) {
                ea && ea.removeButton(a);
            };
            this.setControls = function(a) {
                var b = l.controls, c = !!a;
                l.controls = c;
                c != b && (T ? a ? (Na.show(), Ua.show()) : (Na.hide(), Ua.hide()) : c ? Oa({
                    newstate: w.jwGetState()
                }) : (Ca(), S && S.hide()), ka.sendEvent(e.JWPLAYER_CONTROLS, {
                    controls: c
                }));
            };
            this.forceControls = function(a) {
                R = !!a;
                a ? Da() : Ca();
            };
            this.releaseControls = function() {
                R = null;
                Qa(w.jwGetState());
            };
            this.addCues = function(a) {
                M && M.addCues(a);
            };
            this.forceState = function(a) {
                S.forceState(a);
            };
            this.releaseState = function() {
                S.releaseState(w.jwGetState());
            };
            this.getSafeRegion = function() {
                var a = {
                    x: 0,
                    y: 0,
                    width: 0,
                    height: 0
                };
                if (!l.controls) return a;
                M.showTemp();
                ea.showTemp();
                var b = d(Aa), c = b.top, e = T ? d(s.getElementById(w.id + "_instream_controlbar")) : d(M.element()), f = T ? n : 0 < ea.numButtons(), g = 0 === $.position().indexOf("top"), h = d($.element());
                f && (f = d(ea.element()), a.y = Math.max(0, f.bottom - c));
                g && (a.y = Math.max(a.y, h.bottom - c));
                a.width = b.width;
                a.height = e.height ? (g ? e.top : h.top) - c - a.y : b.height - a.y;
                M.hideTemp();
                ea.hideTemp();
                return a;
            };
            this.destroy = function() {
                h.removeEventListener("resize", C);
                h.removeEventListener("orientationchange", C);
                for (var a = u.length; a--; ) s.removeEventListener(u[a], ha, n);
                l.removeEventListener("fullscreenchange", ha);
                N.removeEventListener("keydown", q, n);
                ra && ra.destroy();
                ca && (w.jwRemoveEventListener(e.JWPLAYER_PLAYER_STATE, ca.statusDelegate), ca.destroy(), 
                ca = null);
                qa && (qa.removeEventListener("mousemove", L), qa.removeEventListener("mouseout", t));
                ba && (ba.removeEventListener("mousemove", L), ba.removeEventListener("click", S.clickHandler));
                T && this.destroyInstream();
            };
            N = G("div", "jwplayer playlist-" + l.playlistposition);
            N.id = w.id;
            N.tabIndex = 0;
            N.onmousedown = function() {
                Ha = !0;
                ka.sendEvent(e.JWPLAYER_VIEW_TAB_FOCUS, {
                    hasFocus: !1
                });
            };
            N.onfocusin = H;
            N.addEventListener("focus", H);
            N.onfocusout = J;
            N.addEventListener("blur", J);
            N.addEventListener("keydown", q);
            Pa = N.requestFullscreen || N.requestFullScreen || N.webkitRequestFullscreen || N.webkitRequestFullScreen || N.webkitEnterFullscreen || N.webkitEnterFullScreen || N.mozRequestFullScreen || N.msRequestFullscreen;
            fa = s.exitFullscreen || s.cancelFullScreen || s.webkitExitFullscreen || s.webkitCancelFullScreen || s.mozCancelFullScreen || s.msExitFullscreen;
            Ia = Pa && fa;
            l.aspectratio && (c.style(N, {
                display: "inline-block"
            }), N.className = N.className.replace("jwplayer", "jwplayer " + v));
            O(l.width, l.height);
            var Ya = s.getElementById(w.id);
            Ya.parentNode.replaceChild(N, Ya);
        };
        c(".jwplayer", {
            position: "relative",
            display: "block",
            opacity: 0,
            "min-height": 0,
            "-webkit-transition": "opacity .25s ease",
            "-moz-transition": "opacity .25s ease",
            "-o-transition": "opacity .25s ease"
        });
        c(".jwmain", {
            position: "absolute",
            left: 0,
            right: 0,
            top: 0,
            bottom: 0,
            "-webkit-transition": "opacity .25s ease",
            "-moz-transition": "opacity .25s ease",
            "-o-transition": "opacity .25s ease"
        });
        c(".jwvideo, .jwcontrols", {
            position: "absolute",
            height: "100%",
            width: "100%",
            "-webkit-transition": "opacity .25s ease",
            "-moz-transition": "opacity .25s ease",
            "-o-transition": "opacity .25s ease"
        });
        c(".jwvideo", {
            overflow: B,
            visibility: B,
            opacity: 0
        });
        c(".jwvideo video", {
            background: "transparent",
            height: "100%",
            width: "100%",
            position: "absolute",
            margin: "auto",
            right: 0,
            left: 0,
            top: 0,
            bottom: 0
        });
        c(".jwplaylistcontainer", {
            position: "absolute",
            height: "100%",
            width: "100%",
            display: y
        });
        c(".jwinstream", {
            position: "absolute",
            top: 0,
            left: 0,
            bottom: 0,
            right: 0,
            display: "none"
        });
        c(".jwaspect", {
            display: "none"
        });
        c(".jwplayer." + v, {
            height: "auto"
        });
        c(".jwplayer.jwfullscreen", {
            width: "100%",
            height: "100%",
            left: 0,
            right: 0,
            top: 0,
            bottom: 0,
            "z-index": 1e3,
            margin: 0,
            position: "fixed"
        }, j);
        c(".jwplayer.jwfullscreen.jw-user-inactive", {
            cursor: "none",
            "-webkit-cursor-visibility": "auto-hide"
        });
        c(".jwplayer.jwfullscreen .jwmain", {
            left: 0,
            right: 0,
            top: 0,
            bottom: 0
        }, j);
        c(".jwplayer.jwfullscreen .jwplaylistcontainer", {
            display: y
        }, j);
        c(".jwplayer .jwuniform", {
            "background-size": "contain !important"
        });
        c(".jwplayer .jwfill", {
            "background-size": "cover !important",
            "background-position": "center"
        });
        c(".jwplayer .jwexactfit", {
            "background-size": "100% 100% !important"
        });
    })(window);
    (function(h, k) {
        function b(a) {
            return "" + s[a];
        }
        function a(a, b) {
            var c = k.createElement(a);
            b && e(c, b);
            return c;
        }
        function e(a, b) {
            b.join || (b = [ b ]);
            for (var c = 0; c < b.length; c++) b[c] && (b[c] = "jwcast-" + b[c]);
            a.className = b.join(" ");
        }
        function g(a, b) {
            b.join || (b = [ b ]);
            for (var c = 0; c < b.length; c++) a.appendChild(b[c]);
        }
        var c = h.utils, d = h.html5, f = h.events, D = f.state, m = c.css, s = {
            wheel: "DgAAAA4CAYAAACohjseAAACiUlEQVR42u3aP2sTYRzAcZ87Md6mhE5GhRqli0NC22yNKO1iaStSY+ggdKggal6BDXRoUuwbEG1LpE4B30LAxEGbKYgO7SVoUhJD04hOusRv4ZlCwP5LevfDgw9kCnzD5Z4/95xqtVqideNLTQzjKV4gCxtNtNwaqBBGCg3UkcYz3EUIV+F1W6AHj7CFb1hAEIbbb1GFByjjAyZgSvkPXkMGW7gt7SETwQ8swpL0FFV4jjpuShsmTiOFz7gobRxUWEceXokDfQKf0CdxJhNFFT6JU7Ur2MUtiXNRhXdYlDrZnkERZyUGerCNcanLpYfISV0PGtjEpNTAGyjBkBq4ggWpWxYmGghIDRzEDgypgTG8lbyrtoZ5yYFZ3JccWMKg5MCfGJAcuHf5/ge6xwX8lnyLDmCn/SEzJChwCKX2YSIqKDCKbPtAHxcUGAdNOhBPkBYUmAZNOhDXUYMSEKdQBU06EAp1BAUEBnWLgg4EXmJJQOASXnVa0YdRcfma0NAN4U6BCpu44+LASd2g0BYIPEbexYHvdQOfOwdaqLh063AcFVj73bq3XBRnoYiZ/b58ySDposAkMlD/DNT8aGLUBXGjaMJ/0Beg9/Dd4etEH2qIHOUVdgHnHRh3DgUkjnoIIYUNh0V6sYHXUIcO1Eyso4BLDoi7jC94A/O4DgIZWEYdYycYN4YalmF04yjXNJpIwOrxOJdAE9PdPoznRxZFTPUgbgI2svD38jjlLMrI61DjmFcFU/iICmZhnMSB2DOYg41tJBGAOuSPFkASZdiYg8cpR5pHsIIGqkgjjghC6Eef1o8QIphHGlU0sIYRGE4/lB7DKnL4il/Yu/5gFzZyWEUMwzC7sXUv2l9q1CPRZSGkLwAAAABJRU5ErkJggg==",
            display: "UAAAAC4AQMAAACo6KcpAAAABlBMVEV6enp6enqEWMsmAAAAAXRSTlMAQObYZgAAAEdJREFUeF7t2bEJACAMRcGAg7j/Fo6VTkvbIKSRe/XBH+DHLlaHK0qN7yAIgiAIgiAIgiAIgiAIgiAIgiAIgg0PZHfzbuUjPCPnO5qQcE/AAAAAAElFTkSuQmCC",
            pause: "CoAAAA2CAQAAAAb3sMwAAAAMElEQVR4Ae3MMQEAMAzDsIY/6AxB9/aRfyvt7GX2Ph8UCoVCoVAo9AiFQqFQKBQKfdYvoctOjDeGAAAAAElFTkSuQmCC",
            play: "DYAAAA2BAMAAAB+a3fuAAAAFVBMVEX///////////////////////////9nSIHRAAAABnRSTlMAP79AwMFfxd6iAAAAX0lEQVR4Xn3JQQGAABAEoaliFiPYYftHMMHBl55uQw455JBDDjnkkEMOOeSQQw455JBDDjnkkEMOOeSQQ+5O3HffW6hQoUKFChUqVKhQoUKFChUqVKhQoUKFChUqVKgfWHsiYI6VycIAAAAASUVORK5CYII=",
            replay: "DQAAAA8CAYAAAApK5mGAAADkklEQVRoBd3BW2iVBRwA8P/cWHMsv9QilLCITLCU0khpST6JCEXrQbKMCgrKFwsfZq/LMnRRIdkFvBQUvmShgg9iV02zB7FScyWlqNHNqbCJ7PKLkFHp952dnZ3tfOv3ixgGSLAVt8b/ARIX9WADJsVIhsR/daIV42MkQiJdO5ZjdIwkSBR2Ek+gJkYCJIpzEE2Rd0gMzB7MibxCojRbcEtUGsZgJu7HYixVuh6sx6QYLrgSD+Fd/GhodKIV42Ko4B68h07Dpx3NGB3lgnnYpbJOYFoMBm7ANpW3D3NjMPAgzqqsn7EIVVEqVGOtymrHMtTGYKAeWxSvB3vxIh7ANIzFNUpzAa0YF4OFWuxUnFNYjkmRAomB6cX7uDHKAdX4QP/asRRXRAFIFO8TzI5yQov+bcO1UQQk+ncITVFumIce2XqxHFVRJCSy/YolqIlyQwOOy9aNR2KAkLhcJ1agIYYKVsvWi6eiBEj8owfrMDEGAVVYiMcjDa7HBdlejhIhcdF2TI9BQiP2uOgsro5LYa1sX6M2SoQ6zItBwmRsdrnn498wDuel68aMqDBMQZd0v6Mu+mCJbBsiJ7BdtkXRB7ul68HNkRNolO3D+BvGoke6HZEz+Fa6c6gJNMn2WOQMmmW7K/CSbBMiZ3CbbM8EPpKuLXIIo3BWujcCh6TbEjmFr6TbGfhDulcip7BJugOBbulaIqfwlnRHQ7bnIqewVrpjgU7pVkZOYaN0hwOnpFsfOYWt0u0LfCnd55FT+EG6zYEN0p1BdeQMEnRLtzKwTLZZkTO4V7bFgTtka4mcwTrZrgtU47R0P6E6cgINOCfdkeiDjbItipzAs7K1Rh/Mle0gaqLC0IBTsk2PPhiFI7ItiwrDKtl2xaXwqGwdmBoVgrvRJdv8uBRq0CbbISQxzDARJ2TbG1kwX2GfoT6GCa7CN7J1Y0YUgk0K+wJjY4hhAg4o7LXoD8bjuMIOY1oMETTiuMIOoj6KgTvRobDzaEZtlAnq8QK6FHYGU2IgcB+69e97LEJNlAh1eBrH9K8DjVEKPIxuxTmJVZiFmugHajEHa/Cb4nRiQQwGmtBpYM7hU7yNFjSjGSuwDrvRYWD+RGOUA25Hm8rZj8lRThiDd9Br+PTgVdTFUMFcfGfo7cHMGA4YhYXYr/x2YQGqohIwG2vwi9Idw2pMjzzBVCzBm/gYR3EaXbiA02jDDryOJ3FTlNFfAO8ENqnn13UAAAAASUVORK5CYII="
        }, v = !1, u = 316 / 176;
        d.castDisplay = function(j) {
            function s() {
                if (A) {
                    var a = A.element();
                    a.parentNode && a.parentNode.removeChild(a);
                    A.resetEventListeners();
                    A = null;
                }
            }
            function y() {
                I && (I.parentNode && I.parentNode.removeChild(I), I = null);
            }
            function p() {
                L && (L.parentNode && L.parentNode.removeChild(L), L = null);
            }
            v || (m(".jwplayer .jwcast-display", {
                display: "none",
                position: "absolute",
                width: "100%",
                height: "100%",
                "background-repeat": "no-repeat",
                "background-size": "auto",
                "background-position": "50% 50%",
                "background-image": b("display")
            }), m(".jwplayer .jwcast-label", {
                position: "absolute",
                left: 10,
                right: 10,
                bottom: "50%",
                "margin-bottom": 100,
                "text-align": "center"
            }), m(".jwplayer .jwcast-label span", {
                "font-family": '"Karbon", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif',
                "font-size": 20,
                "font-weight": 300,
                color: "#7a7a7a"
            }), m(".jwplayer span.jwcast-name", {
                color: "#ccc"
            }), m(".jwcast-button", {
                position: "absolute",
                width: "100%",
                height: "100%",
                opacity: 0,
                "background-repeat": "no-repeat",
                "background-size": "auto",
                "background-position": "50% 50%"
            }), m(".jwcast-wheel", {
                "background-image": b("wheel")
            }), m(".jwcast-pause", {
                "background-image": b("pause")
            }), m(".jwcast-play", {
                "background-image": b("play")
            }), m(".jwcast-replay", {
                "background-image": b("replay")
            }), m(".jwcast-paused .jwcast-play", {
                opacity: 1
            }), m(".jwcast-playing .jwcast-pause", {
                opacity: 1
            }), m(".jwcast-idle .jwcast-replay", {
                opacity: 1
            }), c.cssKeyframes("spin", "from {transform: rotate(0deg);} to {transform: rotate(360deg);}"), 
            m(".jwcast-connecting .jwcast-wheel, .jwcast-buffering .jwcast-wheel", {
                opacity: 1,
                "-webkit-animation": "spin 1.5s linear infinite",
                animation: "spin 1.5s linear infinite"
            }), m(".jwcast-companion", {
                position: "absolute",
                "background-position": "50% 50%",
                "background-size": "316px 176px",
                "background-repeat": "no-repeat",
                top: 0,
                left: 0,
                right: 0,
                bottom: 4
            }), m(".jwplayer .jwcast-click-label", {
                "font-family": '"Karbon", "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif',
                "font-size": 14,
                "font-weight": 300,
                "text-align": "center",
                position: "absolute",
                left: 10,
                right: 10,
                top: "50%",
                color: "#ccc",
                "margin-top": 100,
                "-webkit-user-select": "none",
                "user-select": "none",
                cursor: "pointer"
            }), m(".jwcast-paused .jwcast-click-label", {
                color: "#7a7a7a",
                cursor: "default"
            }), v = !0);
            var w = k.getElementById(j + "_display_button"), l = a("div", "display"), E = a("div", [ "pause", "button" ]), z = a("div", [ "play", "button" ]), q = a("div", [ "replay", "button" ]), H = a("div", [ "wheel", "button" ]), J = a("div", "label"), C = a("span"), r = a("span", "name"), K = "#" + j + "_display.jwdisplay", t = -1, G = null, A = null, L = null, I = null;
            g(l, [ H, E, z, q, J ]);
            g(J, [ C, r ]);
            w.parentNode.insertBefore(l, w);
            this.statusDelegate = null;
            this.setName = function(a) {
                r.innerText = a || "Google Cast";
                return this;
            };
            this.setState = function(a) {
                var b = "Casting on ";
                if (null === G) if ("connecting" === a) b = "Connecting to "; else if (a !== D.IDLE) {
                    var c = h(j).getPlaylistItem().title || "";
                    c && (b = b.replace("on", c + " on"));
                }
                C.innerText = b;
                clearTimeout(t);
                a === D.IDLE && (t = setTimeout(function() {
                    e(l, [ "display", "idle" ]);
                }, 3e3), a = "");
                e(l, [ "display", (a || "").toLowerCase() ]);
                return this;
            };
            this.show = function() {
                m(K + " .jwpreview", {
                    "background-size": "316px 176px !important",
                    opacity: .6,
                    "margin-top": -2
                });
                m(K + " .jwdisplayIcon", {
                    display: "none !important"
                });
                m.style(l, {
                    display: "block"
                });
                return this;
            };
            this.hide = function() {
                c.clearCss(K + " .jwpreview");
                m(K + " .jwdisplayIcon", {
                    display: ""
                });
                m.style(l, {
                    display: "none"
                });
                return this;
            };
            this.setSkipoffset = function(a, b) {
                if (null === A) {
                    var e = k.getElementById(j + "_controlbar"), g = 10 + c.bounds(l).bottom - c.bounds(e).top;
                    A = new d.adskipbutton(j, g | 0, a.skipMessage, a.skipText);
                    A.addEventListener(f.JWPLAYER_AD_SKIPPED, function() {
                        b(a);
                    });
                    A.reset(a.skipoffset || -1);
                    A.show();
                    e.parentNode.insertBefore(A.element(), e);
                } else A.reset(a.skipoffset || -1);
            };
            this.setCompanions = function(b) {
                var c, d, e, f = Number.MAX_VALUE, h = null;
                for (d = b.length; d--; ) if (c = b[d], c.width && c.height && c.source) switch (c.type) {
                  case "html":
                  case "iframe":
                  case "application/x-shockwave-flash":
                    break;

                  default:
                    e = Math.abs(c.width / c.height - u), e < f && (f = e, .75 > e && (h = c));
                }
                (b = h) ? (null === L && (L = a("div", "companion"), g(l, L)), b.width / b.height > u ? (c = 316, 
                d = b.height * c / b.width) : (d = 176, c = b.width * d / b.height), m.style(L, {
                    "background-image": b.source,
                    "background-size": c + "px " + d + "px"
                })) : p();
            };
            this.adChanged = function(b) {
                if (b.complete) A && A.reset(-1), G = null; else {
                    A && (void 0 === b.skipoffset ? s() : (b.position || b.duration) && A.updateSkipTime(b.position | 0, b.duration | 0));
                    var c = b.tag + b.sequence;
                    c !== G && (m(K + " .jwpreview", {
                        opacity: 0
                    }), b.companions ? this.setCompanions(b.companions) : p(), b.clickthrough ? null === I && (I = a("div", "click-label"), 
                    I.innerText = "Click here to learn more >", g(l, I)) : y(), G = c, this.setState(b.newstate));
                }
            };
            this.adsEnded = function() {
                s();
                p();
                y();
                m(K + " .jwpreview", {
                    opacity: .6
                });
                G = null;
            };
            this.destroy = function() {
                this.hide();
                l.parentNode && l.parentNode.removeChild(l);
            };
        };
        var j = ".jwcast button";
        m(j, {
            opacity: 1
        });
        m(j + ":hover", {
            opacity: .75
        });
        j += ".off";
        m(j, {
            opacity: .75
        });
        m(j + ":hover", {
            opacity: 1
        });
    })(jwplayer, document);
    (function(h) {
        var k = jwplayer.utils.extend, b = h.logo;
        b.defaults.prefix = "";
        b.defaults.file = "";
        h.logo = function(a, e) {
            "free" == a.edition() ? e = null : (b.defaults.file = "", b.defaults.prefix = "");
            k(this, new b(a, e));
        };
    })(jwplayer.html5);
    (function(h) {
        var k = h.html5, b = k.model;
        k.model = function(a, e) {
            var g = new h.utils.key(a.key), c = new b(a, e), d = c.componentConfig;
            c.edition = function() {
                return g.edition();
            };
            c.componentConfig = function(a) {
                return "logo" == a ? c.logo : d(a);
            };
            return c;
        };
    })(jwplayer);
    (function(h) {
        var k = h.html5, b = k.player;
        k.player = function(a) {
            a = new b(a);
            var e;
            e = a._model.edition();
            if ("enterprise" === e || "ads" === e) e = new h.cast.controller(a, a._model), a.jwStartCasting = e.startCasting, 
            a.jwStopCasting = e.stopCasting;
            return a;
        };
        b.prototype.edition = function() {
            return this._model.edition();
        };
    })(jwplayer);
    (function(h) {
        var k = jwplayer.utils.extend, b = h.rightclick;
        h.rightclick = function(a, e) {
            if ("free" == a.edition()) e.aboutlink = "http://www.longtailvideo.com/jwpabout/?a=r&v=" + h.version + "&m=h&e=f", 
            delete e.abouttext; else {
                if (!e.aboutlink) {
                    var g = "http://www.longtailvideo.com/jwpabout/?a=r&v=" + h.version + "&m=h&e=", c = a.edition();
                    e.aboutlink = g + ("pro" == c ? "p" : "premium" == c ? "r" : "enterprise" == c ? "e" : "ads" == c ? "a" : "f");
                }
                e.abouttext ? e.abouttext += " ..." : (g = a.edition(), g = g.charAt(0).toUpperCase() + g.substr(1), 
                e.abouttext = "About JW Player " + h.version + " (" + g + " edition)");
            }
            k(this, new b(a, e));
        };
    })(jwplayer.html5);
    (function(h) {
        var k = h.view;
        h.view = function(b, a) {
            var e = new k(b, a), g = e.setup, c = a.edition();
            e.setup = function(a) {
                g(a);
            };
            "invalid" == c && e.setupError("Error setting up player: Invalid license key");
            return e;
        };
    })(window.jwplayer.html5);
});

define("value/jwplayer/6.10.4906/jwplayer-debug", [], function(require, exports, module) {
    "undefined" == typeof jwplayer && (jwplayer = function(h) {
        if (jwplayer.api) return jwplayer.api.selectPlayer(h);
    }, jwplayer.version = "6.10.4906", jwplayer.vid = document.createElement("video"), 
    jwplayer.audio = document.createElement("audio"), jwplayer.source = document.createElement("source"), 
    function(h) {
        function c(f) {
            return function() {
                return a(f);
            };
        }
        function l(f, a, k, m, d) {
            return function() {
                var b, c;
                if (d) k(f); else {
                    try {
                        if (b = f.responseXML) if (c = b.firstChild, b.lastChild && "parsererror" === b.lastChild.nodeName) {
                            m && m("Invalid XML", a, f);
                            return;
                        }
                    } catch (g) {}
                    if (b && c) return k(f);
                    (b = e.parseXML(f.responseText)) && b.firstChild ? (f = e.extend({}, f, {
                        responseXML: b
                    }), k(f)) : m && m(f.responseText ? "Invalid XML" : a, a, f);
                }
            };
        }
        var j = document, g = window, b = navigator, e = h.utils = {};
        e.exists = function(f) {
            switch (typeof f) {
              case "string":
                return 0 < f.length;

              case "object":
                return null !== f;

              case "undefined":
                return !1;
            }
            return !0;
        };
        e.styleDimension = function(f) {
            return f + (0 < f.toString().indexOf("%") ? "" : "px");
        };
        e.getAbsolutePath = function(f, a) {
            e.exists(a) || (a = j.location.href);
            if (e.exists(f)) {
                var k;
                if (e.exists(f)) {
                    k = f.indexOf("://");
                    var m = f.indexOf("?");
                    k = 0 < k && (0 > m || m > k);
                } else k = void 0;
                if (k) return f;
                k = a.substring(0, a.indexOf("://") + 3);
                var m = a.substring(k.length, a.indexOf("/", k.length + 1)), b;
                0 === f.indexOf("/") ? b = f.split("/") : (b = a.split("?")[0], b = b.substring(k.length + m.length + 1, b.lastIndexOf("/")), 
                b = b.split("/").concat(f.split("/")));
                for (var d = [], c = 0; c < b.length; c++) b[c] && e.exists(b[c]) && "." != b[c] && (".." == b[c] ? d.pop() : d.push(b[c]));
                return k + m + "/" + d.join("/");
            }
        };
        e.extend = function() {
            var f = Array.prototype.slice.call(arguments, 0);
            if (1 < f.length) {
                for (var a = f[0], k = function(f, m) {
                    void 0 !== m && null !== m && (a[f] = m);
                }, m = 1; m < f.length; m++) e.foreach(f[m], k);
                return a;
            }
            return null;
        };
        var n = window.console = window.console || {
            log: function() {}
        };
        e.log = function() {
            var f = Array.prototype.slice.call(arguments, 0);
            "object" === typeof n.log ? n.log(f) : n.log.apply(n, f);
        };
        var a = e.userAgentMatch = function(f) {
            return null !== b.userAgent.toLowerCase().match(f);
        };
        e.isFF = c(/firefox/i);
        e.isChrome = c(/chrome/i);
        e.isIPod = c(/iP(hone|od)/i);
        e.isIPad = c(/iPad/i);
        e.isSafari602 = c(/Macintosh.*Mac OS X 10_8.*6\.0\.\d* Safari/i);
        e.isIETrident = function(f) {
            return f ? (f = parseFloat(f).toFixed(1), a(RegExp("trident/.+rv:\\s*" + f, "i"))) : a(/trident/i);
        };
        e.isMSIE = function(f) {
            return f ? (f = parseFloat(f).toFixed(1), a(RegExp("msie\\s*" + f, "i"))) : a(/msie/i);
        };
        e.isIE = function(f) {
            return f ? (f = parseFloat(f).toFixed(1), 11 <= f ? e.isIETrident(f) : e.isMSIE(f)) : e.isMSIE() || e.isIETrident();
        };
        e.isSafari = function() {
            return a(/safari/i) && !a(/chrome/i) && !a(/chromium/i) && !a(/android/i);
        };
        e.isIOS = function(f) {
            return f ? a(RegExp("iP(hone|ad|od).+\\sOS\\s" + f, "i")) : a(/iP(hone|ad|od)/i);
        };
        e.isAndroidNative = function(f) {
            return e.isAndroid(f, !0);
        };
        e.isAndroid = function(f, b) {
            return b && a(/chrome\/[123456789]/i) && !a(/chrome\/18/) ? !1 : f ? (e.isInt(f) && !/\./.test(f) && (f = "" + f + "."), 
            a(RegExp("Android\\s*" + f, "i"))) : a(/Android/i);
        };
        e.isMobile = function() {
            return e.isIOS() || e.isAndroid();
        };
        e.saveCookie = function(f, a) {
            j.cookie = "jwplayer." + f + "=" + a + "; path=/";
        };
        e.getCookies = function() {
            for (var f = {}, a = j.cookie.split("; "), k = 0; k < a.length; k++) {
                var m = a[k].split("=");
                0 === m[0].indexOf("jwplayer.") && (f[m[0].substring(9, m[0].length)] = m[1]);
            }
            return f;
        };
        e.isInt = function(f) {
            return 0 === f % 1;
        };
        e.typeOf = function(f) {
            var a = typeof f;
            return "object" === a ? !f ? "null" : f instanceof Array ? "array" : a : a;
        };
        e.translateEventResponse = function(f, a) {
            var k = e.extend({}, a);
            if (f == h.events.JWPLAYER_FULLSCREEN && !k.fullscreen) k.fullscreen = "true" === k.message, 
            delete k.message; else if ("object" == typeof k.data) {
                var m = k.data;
                delete k.data;
                k = e.extend(k, m);
            } else "object" == typeof k.metadata && e.deepReplaceKeyName(k.metadata, [ "__dot__", "__spc__", "__dsh__", "__default__" ], [ ".", " ", "-", "default" ]);
            e.foreach([ "position", "duration", "offset" ], function(f, m) {
                k[m] && (k[m] = Math.round(1e3 * k[m]) / 1e3);
            });
            return k;
        };
        e.flashVersion = function() {
            if (e.isAndroid()) return 0;
            var f = b.plugins, a;
            try {
                if ("undefined" !== f && (a = f["Shockwave Flash"])) return parseInt(a.description.replace(/\D+(\d+)\..*/, "$1"), 10);
            } catch (k) {}
            if ("undefined" != typeof g.ActiveXObject) try {
                if (a = new g.ActiveXObject("ShockwaveFlash.ShockwaveFlash")) return parseInt(a.GetVariable("$version").split(" ")[1].split(",")[0], 10);
            } catch (m) {}
            return 0;
        };
        e.getScriptPath = function(f) {
            for (var a = j.getElementsByTagName("script"), k = 0; k < a.length; k++) {
                var m = a[k].src;
                if (m && 0 <= m.indexOf(f)) return m.substr(0, m.indexOf(f));
            }
            return "";
        };
        e.deepReplaceKeyName = function(f, a, k) {
            switch (h.utils.typeOf(f)) {
              case "array":
                for (var m = 0; m < f.length; m++) f[m] = h.utils.deepReplaceKeyName(f[m], a, k);
                break;

              case "object":
                e.foreach(f, function(m, b) {
                    var e;
                    if (a instanceof Array && k instanceof Array) {
                        if (a.length != k.length) return;
                        e = a;
                    } else e = [ a ];
                    for (var d = m, c = 0; c < e.length; c++) d = d.replace(RegExp(a[c], "g"), k[c]);
                    f[d] = h.utils.deepReplaceKeyName(b, a, k);
                    m != d && delete f[m];
                });
            }
            return f;
        };
        var d = e.pluginPathType = {
            ABSOLUTE: 0,
            RELATIVE: 1,
            CDN: 2
        };
        e.getPluginPathType = function(f) {
            if ("string" == typeof f) {
                f = f.split("?")[0];
                var a = f.indexOf("://");
                if (0 < a) return d.ABSOLUTE;
                var k = f.indexOf("/");
                f = e.extension(f);
                return 0 > a && 0 > k && (!f || !isNaN(f)) ? d.CDN : d.RELATIVE;
            }
        };
        e.getPluginName = function(f) {
            return f.replace(/^(.*\/)?([^-]*)-?.*\.(swf|js)$/, "$2");
        };
        e.getPluginVersion = function(f) {
            return f.replace(/[^-]*-?([^\.]*).*$/, "$1");
        };
        e.isYouTube = function(f) {
            return /^(http|\/\/).*(youtube\.com|youtu\.be)\/.+/.test(f);
        };
        e.youTubeID = function(f) {
            try {
                return /v[=\/]([^?&]*)|youtu\.be\/([^?]*)|^([\w-]*)$/i.exec(f).slice(1).join("").replace("?", "");
            } catch (a) {
                return "";
            }
        };
        e.isRtmp = function(f, a) {
            return 0 === f.indexOf("rtmp") || "rtmp" == a;
        };
        e.foreach = function(f, a) {
            var k, m;
            for (k in f) "function" == e.typeOf(f.hasOwnProperty) ? f.hasOwnProperty(k) && (m = f[k], 
            a(k, m)) : (m = f[k], a(k, m));
        };
        e.isHTTPS = function() {
            return 0 === g.location.href.indexOf("https");
        };
        e.repo = function() {
            var f = "http://res.tourerp.cn/" + h.version.split(/\W/).splice(0, 2).join("/") + "/";
            try {
                e.isHTTPS() && (f = f.replace("http://", "https://ssl."));
            } catch (a) {}
            return f;
        };
        e.versionCheck = function(f) {
            f = ("0" + f).split(/\W/);
            var a = h.version.split(/\W/), k = parseFloat(f[0]), m = parseFloat(a[0]);
            return k > m || k === m && parseFloat("0" + f[1]) > parseFloat(a[1]) ? !1 : !0;
        };
        e.ajax = function(f, a, k, m) {
            var b, d = !1;
            0 < f.indexOf("#") && (f = f.replace(/#.*$/, ""));
            if (f && 0 <= f.indexOf("://") && f.split("/")[2] != g.location.href.split("/")[2] && e.exists(g.XDomainRequest)) b = new g.XDomainRequest(), 
            b.onload = l(b, f, a, k, m), b.ontimeout = b.onprogress = function() {}, b.timeout = 5e3; else if (e.exists(g.XMLHttpRequest)) {
                var c = b = new g.XMLHttpRequest(), j = f;
                b.onreadystatechange = function() {
                    if (4 === c.readyState) switch (c.status) {
                      case 200:
                        l(c, j, a, k, m)();
                        break;

                      case 404:
                        k("File not found", j, c);
                    }
                };
            } else return k && k("", f, b), b;
            b.overrideMimeType && b.overrideMimeType("text/xml");
            var n = f, h = b;
            b.onerror = function() {
                k("Error loading file", n, h);
            };
            try {
                b.open("GET", f, !0);
            } catch (G) {
                d = !0;
            }
            setTimeout(function() {
                if (d) k && k(f, f, b); else try {
                    b.send();
                } catch (a) {
                    k && k(f, f, b);
                }
            }, 0);
            return b;
        };
        e.parseXML = function(a) {
            var b;
            try {
                if (g.DOMParser) {
                    if (b = new g.DOMParser().parseFromString(a, "text/xml"), b.childNodes && b.childNodes.length && "parsererror" == b.childNodes[0].firstChild.nodeName) return;
                } else b = new g.ActiveXObject("Microsoft.XMLDOM"), b.async = "false", b.loadXML(a);
            } catch (k) {
                return;
            }
            return b;
        };
        e.filterPlaylist = function(a, b, k) {
            var m = [], d, c, g, j;
            for (d = 0; d < a.length; d++) if (c = e.extend({}, a[d]), c.sources = e.filterSources(c.sources, !1, k), 
            0 < c.sources.length) {
                for (g = 0; g < c.sources.length; g++) j = c.sources[g], j.label || (j.label = g.toString());
                m.push(c);
            }
            if (b && 0 === m.length) for (d = 0; d < a.length; d++) if (c = e.extend({}, a[d]), 
            c.sources = e.filterSources(c.sources, !0, k), 0 < c.sources.length) {
                for (g = 0; g < c.sources.length; g++) j = c.sources[g], j.label || (j.label = g.toString());
                m.push(c);
            }
            return m;
        };
        e.between = function(a, b, d) {
            return Math.max(Math.min(a, d), b);
        };
        e.filterSources = function(a, b, d) {
            var m, c;
            if (a) {
                c = [];
                for (var g = 0; g < a.length; g++) {
                    var j = e.extend({}, a[g]), n = j.file, l = j.type;
                    n && (j.file = n = e.trim("" + n), l || (l = e.extension(n), j.type = l = e.extensionmap.extType(l)), 
                    b ? h.embed.flashCanPlay(n, l) && (m || (m = l), l == m && c.push(j)) : h.embed.html5CanPlay(n, l, d) && (m || (m = l), 
                    l == m && c.push(j)));
                }
            }
            return c;
        };
        e.canPlayHTML5 = function(a) {
            a = e.extensionmap.types[a];
            return !!a && !!h.vid.canPlayType && !!h.vid.canPlayType(a);
        };
        e.seconds = function(a) {
            a = a.replace(",", ".");
            var b = a.split(":"), d = 0;
            "s" == a.slice(-1) ? d = parseFloat(a) : "m" == a.slice(-1) ? d = 60 * parseFloat(a) : "h" == a.slice(-1) ? d = 3600 * parseFloat(a) : 1 < b.length ? (d = parseFloat(b[b.length - 1]), 
            d += 60 * parseFloat(b[b.length - 2]), 3 == b.length && (d += 3600 * parseFloat(b[b.length - 3]))) : d = parseFloat(a);
            return d;
        };
        e.serialize = function(a) {
            return null === a ? null : "true" == a.toString().toLowerCase() ? !0 : "false" == a.toString().toLowerCase() ? !1 : isNaN(Number(a)) || 5 < a.length || 0 === a.length ? a : Number(a);
        };
        e.addClass = function(a, b) {
            a.className = a.className + " " + b;
        };
        e.removeClass = function(a, b) {
            a.className = a.className.replace(RegExp(" *" + b, "g"), " ");
        };
    }(jwplayer), function(h) {
        function c(a) {
            var b = document.createElement("style");
            a && b.appendChild(document.createTextNode(a));
            b.type = "text/css";
            document.getElementsByTagName("head")[0].appendChild(b);
            return b;
        }
        function l(a, m, d) {
            if (!b.exists(m)) return "";
            d = d ? " !important" : "";
            return "string" === typeof m && isNaN(m) ? /png|gif|jpe?g/i.test(m) && 0 > m.indexOf("url") ? "url(" + m + ")" : m + d : 0 === m || "z-index" === a || "opacity" === a ? "" + m + d : /color/i.test(a) ? "#" + b.pad(m.toString(16).replace(/^0x/i, ""), 6) + d : Math.ceil(m) + "px" + d;
        }
        function j(a, b) {
            for (var d = 0; d < a.length; d++) {
                var f = a[d], c, e;
                if (void 0 !== f && null !== f) for (c in b) {
                    e = c;
                    e = e.split("-");
                    for (var g = 1; g < e.length; g++) e[g] = e[g].charAt(0).toUpperCase() + e[g].slice(1);
                    e = e.join("");
                    f.style[e] !== b[c] && (f.style[e] = b[c]);
                }
            }
        }
        function g(b) {
            var m = e[b].sheet, d, c, g;
            if (m) {
                d = m.cssRules;
                c = f[b];
                g = b;
                var j = a[g];
                g += " { ";
                for (var n in j) g += n + ": " + j[n] + "; ";
                g += "}";
                if (void 0 !== c && c < d.length && d[c].selectorText === b) {
                    if (g === d[c].cssText) return;
                    m.deleteRule(c);
                } else c = d.length, f[b] = c;
                try {
                    m.insertRule(g, c);
                } catch (h) {}
            }
        }
        var b = h.utils, e = {}, n, a = {}, d = null, f = {};
        b.cssKeyframes = function(a, b) {
            var d = e.keyframes;
            d || (d = c(), e.keyframes = d);
            var d = d.sheet, f = "@keyframes " + a + " { " + b + " }";
            try {
                d.insertRule(f, d.cssRules.length);
            } catch (g) {}
            f = f.replace(/(keyframes|transform)/g, "-webkit-$1");
            try {
                d.insertRule(f, d.cssRules.length);
            } catch (j) {}
        };
        var q = b.css = function(b, m, f) {
            a[b] || (a[b] = {});
            var j = a[b];
            f = f || !1;
            var h = !1, q, p;
            for (q in m) p = l(q, m[q], f), "" !== p ? p !== j[q] && (j[q] = p, h = !0) : void 0 !== j[q] && (delete j[q], 
            h = !0);
            if (h) {
                if (!e[b]) {
                    m = n && n.sheet && n.sheet.cssRules && n.sheet.cssRules.length || 0;
                    if (!n || 5e4 < m) n = c();
                    e[b] = n;
                }
                null !== d ? d.styleSheets[b] = a[b] : g(b);
            }
        };
        q.style = function(a, b, f) {
            if (!(void 0 === a || null === a)) {
                void 0 === a.length && (a = [ a ]);
                var c = {}, e;
                for (e in b) c[e] = l(e, b[e]);
                if (null !== d && !f) {
                    b = (b = a.__cssRules) || {};
                    for (var g in c) b[g] = c[g];
                    a.__cssRules = b;
                    0 > d.elements.indexOf(a) && d.elements.push(a);
                } else j(a, c);
            }
        };
        q.block = function(a) {
            null === d && (d = {
                id: a,
                styleSheets: {},
                elements: []
            });
        };
        q.unblock = function(a) {
            if (d && (!a || d.id === a)) {
                for (var b in d.styleSheets) g(b);
                for (a = 0; a < d.elements.length; a++) b = d.elements[a], j(b, b.__cssRules);
                d = null;
            }
        };
        b.clearCss = function(b) {
            for (var d in a) 0 <= d.indexOf(b) && delete a[d];
            for (var c in e) 0 <= c.indexOf(b) && g(c);
        };
        b.transform = function(a, b) {
            var d = {};
            b = b || "";
            d.transform = b;
            d["-webkit-transform"] = b;
            d["-ms-transform"] = b;
            d["-moz-transform"] = b;
            d["-o-transform"] = b;
            "string" === typeof a ? q(a, d) : q.style(a, d);
        };
        b.dragStyle = function(a, b) {
            q(a, {
                "-webkit-user-select": b,
                "-moz-user-select": b,
                "-ms-user-select": b,
                "-webkit-user-drag": b,
                "user-select": b,
                "user-drag": b
            });
        };
        b.transitionStyle = function(a, b) {
            navigator.userAgent.match(/5\.\d(\.\d)? safari/i) || q(a, {
                "-webkit-transition": b,
                "-moz-transition": b,
                "-o-transition": b,
                transition: b
            });
        };
        b.rotate = function(a, d) {
            b.transform(a, "rotate(" + d + "deg)");
        };
        b.rgbHex = function(a) {
            a = String(a).replace("#", "");
            3 === a.length && (a = a[0] + a[0] + a[1] + a[1] + a[2] + a[2]);
            return "#" + a.substr(-6);
        };
        b.hexToRgba = function(a, b) {
            var d = "rgb", c = [ parseInt(a.substr(1, 2), 16), parseInt(a.substr(3, 2), 16), parseInt(a.substr(5, 2), 16) ];
            void 0 !== b && 100 !== b && (d += "a", c.push(b / 100));
            return d + "(" + c.join(",") + ")";
        };
    }(jwplayer), function(h) {
        var c = h.foreach, l = {
            mp4: "video/mp4",
            ogg: "video/ogg",
            oga: "audio/ogg",
            vorbis: "audio/ogg",
            webm: "video/webm",
            aac: "audio/mp4",
            mp3: "audio/mpeg",
            hls: "application/vnd.apple.mpegurl"
        }, j = {
            mp4: l.mp4,
            f4v: l.mp4,
            m4v: l.mp4,
            mov: l.mp4,
            m4a: l.aac,
            f4a: l.aac,
            aac: l.aac,
            mp3: l.mp3,
            ogv: l.ogg,
            ogg: l.ogg,
            oga: l.vorbis,
            vorbis: l.vorbis,
            webm: l.webm,
            m3u8: l.hls,
            m3u: l.hls,
            hls: l.hls
        }, g = h.extensionmap = {};
        c(j, function(b, c) {
            g[b] = {
                html5: c
            };
        });
        c({
            flv: "video",
            f4v: "video",
            mov: "video",
            m4a: "video",
            m4v: "video",
            mp4: "video",
            aac: "video",
            f4a: "video",
            mp3: "sound",
            smil: "rtmp",
            m3u8: "hls",
            hls: "hls"
        }, function(b, c) {
            g[b] || (g[b] = {});
            g[b].flash = c;
        });
        g.types = l;
        g.mimeType = function(b) {
            var e;
            c(l, function(c, a) {
                !e && a == b && (e = c);
            });
            return e;
        };
        g.extType = function(b) {
            return g.mimeType(j[b]);
        };
    }(jwplayer.utils), function(h) {
        var c = h.loaderstatus = {
            NEW: 0,
            LOADING: 1,
            ERROR: 2,
            COMPLETE: 3
        }, l = document;
        h.scriptloader = function(j) {
            function g(b) {
                a = c.ERROR;
                n.sendEvent(e.ERROR, b);
            }
            function b(b) {
                a = c.COMPLETE;
                n.sendEvent(e.COMPLETE, b);
            }
            var e = jwplayer.events, n = h.extend(this, new e.eventdispatcher()), a = c.NEW;
            this.load = function() {
                if (a == c.NEW) {
                    var d = h.scriptloader.loaders[j];
                    if (d && (a = d.getStatus(), 2 > a)) {
                        d.addEventListener(e.ERROR, g);
                        d.addEventListener(e.COMPLETE, b);
                        return;
                    }
                    var f = l.createElement("script");
                    f.addEventListener ? (f.onload = b, f.onerror = g) : f.readyState && (f.onreadystatechange = function(a) {
                        ("loaded" == f.readyState || "complete" == f.readyState) && b(a);
                    });
                    l.getElementsByTagName("head")[0].appendChild(f);
                    f.src = j;
                    a = c.LOADING;
                    h.scriptloader.loaders[j] = this;
                }
            };
            this.getStatus = function() {
                return a;
            };
        };
        h.scriptloader.loaders = {};
    }(jwplayer.utils), function(h) {
        h.trim = function(c) {
            return c.replace(/^\s*/, "").replace(/\s*$/, "");
        };
        h.pad = function(c, h, j) {
            for (j || (j = "0"); c.length < h; ) c = j + c;
            return c;
        };
        h.xmlAttribute = function(c, h) {
            for (var j = 0; j < c.attributes.length; j++) if (c.attributes[j].name && c.attributes[j].name.toLowerCase() == h.toLowerCase()) return c.attributes[j].value.toString();
            return "";
        };
        h.extension = function(c) {
            if (!c || "rtmp" == c.substr(0, 4)) return "";
            var h;
            h = c.match(/manifest\(format=(.*),audioTrack/);
            h = !h || !h[1] ? !1 : h[1].split("-")[0];
            if (h) return h;
            c = c.substring(c.lastIndexOf("/") + 1, c.length).split("?")[0].split("#")[0];
            if (-1 < c.lastIndexOf(".")) return c.substr(c.lastIndexOf(".") + 1, c.length).toLowerCase();
        };
        h.stringToColor = function(c) {
            c = c.replace(/(#|0x)?([0-9A-F]{3,6})$/gi, "$2");
            3 == c.length && (c = c.charAt(0) + c.charAt(0) + c.charAt(1) + c.charAt(1) + c.charAt(2) + c.charAt(2));
            return parseInt(c, 16);
        };
    }(jwplayer.utils), function(h) {
        var c = "touchmove", l = "touchstart";
        h.touch = function(j) {
            function g(d) {
                d.type == l ? (a = !0, f = e(k.DRAG_START, d)) : d.type == c ? a && (q || (b(k.DRAG_START, d, f), 
                q = !0), b(k.DRAG, d)) : (a && (q ? b(k.DRAG_END, d) : (d.cancelBubble = !0, b(k.TAP, d))), 
                a = q = !1, f = null);
            }
            function b(a, b, c) {
                if (d[a] && (b.preventManipulation && b.preventManipulation(), b.preventDefault && b.preventDefault(), 
                b = c ? c : e(a, b))) d[a](b);
            }
            function e(a, b) {
                var d = null;
                b.touches && b.touches.length ? d = b.touches[0] : b.changedTouches && b.changedTouches.length && (d = b.changedTouches[0]);
                if (!d) return null;
                var c = n.getBoundingClientRect(), d = {
                    type: a,
                    target: n,
                    x: d.pageX - window.pageXOffset - c.left,
                    y: d.pageY,
                    deltaX: 0,
                    deltaY: 0
                };
                a != k.TAP && f && (d.deltaX = d.x - f.x, d.deltaY = d.y - f.y);
                return d;
            }
            var n = j, a = !1, d = {}, f = null, q = !1, k = h.touchEvents;
            document.addEventListener(c, g);
            document.addEventListener("touchend", function(d) {
                a && q && b(k.DRAG_END, d);
                a = q = !1;
                f = null;
            });
            document.addEventListener("touchcancel", g);
            j.addEventListener(l, g);
            j.addEventListener("touchend", g);
            this.addEventListener = function(a, b) {
                d[a] = b;
            };
            this.removeEventListener = function(a) {
                delete d[a];
            };
            return this;
        };
    }(jwplayer.utils), function(h) {
        h.touchEvents = {
            DRAG: "jwplayerDrag",
            DRAG_START: "jwplayerDragStart",
            DRAG_END: "jwplayerDragEnd",
            TAP: "jwplayerTap"
        };
    }(jwplayer.utils), function(h) {
        h.key = function(c) {
            var l, j, g;
            this.edition = function() {
                return g && g.getTime() < new Date().getTime() ? "invalid" : l;
            };
            this.token = function() {
                return j;
            };
            h.exists(c) || (c = "");
            try {
                c = h.tea.decrypt(c, "36QXq4W@GSBV^teR");
                var b = c.split("/");
                (l = b[0]) ? /^(free|pro|premium|enterprise|ads)$/i.test(l) ? (j = b[1], b[2] && 0 < parseInt(b[2]) && (g = new Date(), 
                g.setTime(String(b[2])))) : l = "invalid" : l = "free";
            } catch (e) {
                l = "invalid";
            }
        };
    }(jwplayer.utils), function(h) {
        var c = h.tea = {};
        c.encrypt = function(g, b) {
            if (0 == g.length) return "";
            var e = c.strToLongs(j.encode(g));
            1 >= e.length && (e[1] = 0);
            for (var n = c.strToLongs(j.encode(b).slice(0, 16)), a = e.length, d = e[a - 1], f = e[0], h, k = Math.floor(6 + 52 / a), m = 0; 0 < k--; ) {
                m += 2654435769;
                h = m >>> 2 & 3;
                for (var r = 0; r < a; r++) f = e[(r + 1) % a], d = (d >>> 5 ^ f << 2) + (f >>> 3 ^ d << 4) ^ (m ^ f) + (n[r & 3 ^ h] ^ d), 
                d = e[r] += d;
            }
            e = c.longsToStr(e);
            return l.encode(e);
        };
        c.decrypt = function(g, b) {
            if (0 == g.length) return "";
            for (var e = c.strToLongs(l.decode(g)), h = c.strToLongs(j.encode(b).slice(0, 16)), a = e.length, d = e[a - 1], f = e[0], q, k = 2654435769 * Math.floor(6 + 52 / a); 0 != k; ) {
                q = k >>> 2 & 3;
                for (var m = a - 1; 0 <= m; m--) d = e[0 < m ? m - 1 : a - 1], d = (d >>> 5 ^ f << 2) + (f >>> 3 ^ d << 4) ^ (k ^ f) + (h[m & 3 ^ q] ^ d), 
                f = e[m] -= d;
                k -= 2654435769;
            }
            e = c.longsToStr(e);
            e = e.replace(/\0+$/, "");
            return j.decode(e);
        };
        c.strToLongs = function(c) {
            for (var b = Array(Math.ceil(c.length / 4)), e = 0; e < b.length; e++) b[e] = c.charCodeAt(4 * e) + (c.charCodeAt(4 * e + 1) << 8) + (c.charCodeAt(4 * e + 2) << 16) + (c.charCodeAt(4 * e + 3) << 24);
            return b;
        };
        c.longsToStr = function(c) {
            for (var b = Array(c.length), e = 0; e < c.length; e++) b[e] = String.fromCharCode(c[e] & 255, c[e] >>> 8 & 255, c[e] >>> 16 & 255, c[e] >>> 24 & 255);
            return b.join("");
        };
        var l = {
            code: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",
            encode: function(c, b) {
                var e, h, a, d, f = [], q = "", k, m, r = l.code;
                m = ("undefined" == typeof b ? 0 : b) ? j.encode(c) : c;
                k = m.length % 3;
                if (0 < k) for (;3 > k++; ) q += "=", m += "\0";
                for (k = 0; k < m.length; k += 3) e = m.charCodeAt(k), h = m.charCodeAt(k + 1), 
                a = m.charCodeAt(k + 2), d = e << 16 | h << 8 | a, e = d >> 18 & 63, h = d >> 12 & 63, 
                a = d >> 6 & 63, d &= 63, f[k / 3] = r.charAt(e) + r.charAt(h) + r.charAt(a) + r.charAt(d);
                f = f.join("");
                return f = f.slice(0, f.length - q.length) + q;
            },
            decode: function(c, b) {
                b = "undefined" == typeof b ? !1 : b;
                var e, h, a, d, f, q = [], k, m = l.code;
                k = b ? j.decode(c) : c;
                for (var r = 0; r < k.length; r += 4) e = m.indexOf(k.charAt(r)), h = m.indexOf(k.charAt(r + 1)), 
                d = m.indexOf(k.charAt(r + 2)), f = m.indexOf(k.charAt(r + 3)), a = e << 18 | h << 12 | d << 6 | f, 
                e = a >>> 16 & 255, h = a >>> 8 & 255, a &= 255, q[r / 4] = String.fromCharCode(e, h, a), 
                64 == f && (q[r / 4] = String.fromCharCode(e, h)), 64 == d && (q[r / 4] = String.fromCharCode(e));
                d = q.join("");
                return b ? j.decode(d) : d;
            }
        }, j = {
            encode: function(c) {
                c = c.replace(/[\u0080-\u07ff]/g, function(b) {
                    b = b.charCodeAt(0);
                    return String.fromCharCode(192 | b >> 6, 128 | b & 63);
                });
                return c = c.replace(/[\u0800-\uffff]/g, function(b) {
                    b = b.charCodeAt(0);
                    return String.fromCharCode(224 | b >> 12, 128 | b >> 6 & 63, 128 | b & 63);
                });
            },
            decode: function(c) {
                c = c.replace(/[\u00e0-\u00ef][\u0080-\u00bf][\u0080-\u00bf]/g, function(b) {
                    b = (b.charCodeAt(0) & 15) << 12 | (b.charCodeAt(1) & 63) << 6 | b.charCodeAt(2) & 63;
                    return String.fromCharCode(b);
                });
                return c = c.replace(/[\u00c0-\u00df][\u0080-\u00bf]/g, function(b) {
                    b = (b.charCodeAt(0) & 31) << 6 | b.charCodeAt(1) & 63;
                    return String.fromCharCode(b);
                });
            }
        };
    }(jwplayer.utils), function(h) {
        h.events = {
            COMPLETE: "COMPLETE",
            ERROR: "ERROR",
            API_READY: "jwplayerAPIReady",
            JWPLAYER_READY: "jwplayerReady",
            JWPLAYER_FULLSCREEN: "jwplayerFullscreen",
            JWPLAYER_RESIZE: "jwplayerResize",
            JWPLAYER_ERROR: "jwplayerError",
            JWPLAYER_SETUP_ERROR: "jwplayerSetupError",
            JWPLAYER_MEDIA_BEFOREPLAY: "jwplayerMediaBeforePlay",
            JWPLAYER_MEDIA_BEFORECOMPLETE: "jwplayerMediaBeforeComplete",
            JWPLAYER_COMPONENT_SHOW: "jwplayerComponentShow",
            JWPLAYER_COMPONENT_HIDE: "jwplayerComponentHide",
            JWPLAYER_MEDIA_BUFFER: "jwplayerMediaBuffer",
            JWPLAYER_MEDIA_BUFFER_FULL: "jwplayerMediaBufferFull",
            JWPLAYER_MEDIA_ERROR: "jwplayerMediaError",
            JWPLAYER_MEDIA_LOADED: "jwplayerMediaLoaded",
            JWPLAYER_MEDIA_COMPLETE: "jwplayerMediaComplete",
            JWPLAYER_MEDIA_SEEK: "jwplayerMediaSeek",
            JWPLAYER_MEDIA_TIME: "jwplayerMediaTime",
            JWPLAYER_MEDIA_VOLUME: "jwplayerMediaVolume",
            JWPLAYER_MEDIA_META: "jwplayerMediaMeta",
            JWPLAYER_MEDIA_MUTE: "jwplayerMediaMute",
            JWPLAYER_MEDIA_LEVELS: "jwplayerMediaLevels",
            JWPLAYER_MEDIA_LEVEL_CHANGED: "jwplayerMediaLevelChanged",
            JWPLAYER_CAPTIONS_CHANGED: "jwplayerCaptionsChanged",
            JWPLAYER_CAPTIONS_LIST: "jwplayerCaptionsList",
            JWPLAYER_CAPTIONS_LOADED: "jwplayerCaptionsLoaded",
            JWPLAYER_PLAYER_STATE: "jwplayerPlayerState",
            state: {
                BUFFERING: "BUFFERING",
                IDLE: "IDLE",
                PAUSED: "PAUSED",
                PLAYING: "PLAYING"
            },
            JWPLAYER_PLAYLIST_LOADED: "jwplayerPlaylistLoaded",
            JWPLAYER_PLAYLIST_ITEM: "jwplayerPlaylistItem",
            JWPLAYER_PLAYLIST_COMPLETE: "jwplayerPlaylistComplete",
            JWPLAYER_DISPLAY_CLICK: "jwplayerViewClick",
            JWPLAYER_VIEW_TAB_FOCUS: "jwplayerViewTabFocus",
            JWPLAYER_CONTROLS: "jwplayerViewControls",
            JWPLAYER_USER_ACTION: "jwplayerUserAction",
            JWPLAYER_INSTREAM_CLICK: "jwplayerInstreamClicked",
            JWPLAYER_INSTREAM_DESTROYED: "jwplayerInstreamDestroyed",
            JWPLAYER_AD_TIME: "jwplayerAdTime",
            JWPLAYER_AD_ERROR: "jwplayerAdError",
            JWPLAYER_AD_CLICK: "jwplayerAdClicked",
            JWPLAYER_AD_COMPLETE: "jwplayerAdComplete",
            JWPLAYER_AD_IMPRESSION: "jwplayerAdImpression",
            JWPLAYER_AD_COMPANIONS: "jwplayerAdCompanions",
            JWPLAYER_AD_SKIPPED: "jwplayerAdSkipped",
            JWPLAYER_AD_PLAY: "jwplayerAdPlay",
            JWPLAYER_AD_PAUSE: "jwplayerAdPause",
            JWPLAYER_AD_META: "jwplayerAdMeta",
            JWPLAYER_CAST_AVAILABLE: "jwplayerCastAvailable",
            JWPLAYER_CAST_SESSION: "jwplayerCastSession",
            JWPLAYER_CAST_AD_CHANGED: "jwplayerCastAdChanged"
        };
    }(jwplayer), function(h) {
        var c = h.utils;
        h.events.eventdispatcher = function(l, j) {
            function g(b, a, d) {
                if (b) for (var f = 0; f < b.length; f++) {
                    var e = b[f];
                    if (e) {
                        null !== e.count && 0 === --e.count && delete b[f];
                        try {
                            e.listener(a);
                        } catch (g) {
                            c.log('Error handling "' + d + '" event listener [' + f + "]: " + g.toString(), e.listener, a);
                        }
                    }
                }
            }
            var b, e;
            this.resetEventListeners = function() {
                b = {};
                e = [];
            };
            this.resetEventListeners();
            this.addEventListener = function(e, a, d) {
                try {
                    c.exists(b[e]) || (b[e] = []), "string" == c.typeOf(a) && (a = new Function("return " + a)()), 
                    b[e].push({
                        listener: a,
                        count: d || null
                    });
                } catch (f) {
                    c.log("error", f);
                }
                return !1;
            };
            this.removeEventListener = function(e, a) {
                if (b[e]) {
                    try {
                        if (void 0 === a) {
                            b[e] = [];
                            return;
                        }
                        for (var d = 0; d < b[e].length; d++) if (b[e][d].listener.toString() == a.toString()) {
                            b[e].splice(d, 1);
                            break;
                        }
                    } catch (f) {
                        c.log("error", f);
                    }
                    return !1;
                }
            };
            this.addGlobalListener = function(b, a) {
                try {
                    "string" == c.typeOf(b) && (b = new Function("return " + b)()), e.push({
                        listener: b,
                        count: a || null
                    });
                } catch (d) {
                    c.log("error", d);
                }
                return !1;
            };
            this.removeGlobalListener = function(b) {
                if (b) {
                    try {
                        for (var a = e.length; a--; ) e[a].listener.toString() == b.toString() && e.splice(a, 1);
                    } catch (d) {
                        c.log("error", d);
                    }
                    return !1;
                }
            };
            this.sendEvent = function(n, a) {
                c.exists(a) || (a = {});
                c.extend(a, {
                    id: l,
                    version: h.version,
                    type: n
                });
                j && c.log(n, a);
                g(b[n], a, n);
                g(e, a, n);
            };
        };
    }(window.jwplayer), function(h) {
        var c = {}, l = {};
        h.plugins = function() {};
        h.plugins.loadPlugins = function(j, g) {
            l[j] = new h.plugins.pluginloader(new h.plugins.model(c), g);
            return l[j];
        };
        h.plugins.registerPlugin = function(j, g, b, e) {
            var n = h.utils.getPluginName(j);
            c[n] || (c[n] = new h.plugins.plugin(j));
            c[n].registerPlugin(j, g, b, e);
        };
    }(jwplayer), function(h) {
        h.plugins.model = function(c) {
            this.addPlugin = function(l) {
                var j = h.utils.getPluginName(l);
                c[j] || (c[j] = new h.plugins.plugin(l));
                return c[j];
            };
            this.getPlugins = function() {
                return c;
            };
        };
    }(jwplayer), function(h) {
        var c = jwplayer.utils, l = jwplayer.events;
        h.pluginmodes = {
            FLASH: 0,
            JAVASCRIPT: 1,
            HYBRID: 2
        };
        h.plugin = function(j) {
            function g() {
                switch (c.getPluginPathType(j)) {
                  case c.pluginPathType.ABSOLUTE:
                    return j;

                  case c.pluginPathType.RELATIVE:
                    return c.getAbsolutePath(j, window.location.href);
                }
            }
            function b() {
                q = setTimeout(function() {
                    n = c.loaderstatus.COMPLETE;
                    k.sendEvent(l.COMPLETE);
                }, 1e3);
            }
            function e() {
                n = c.loaderstatus.ERROR;
                k.sendEvent(l.ERROR);
            }
            var n = c.loaderstatus.NEW, a, d, f, q, k = new l.eventdispatcher();
            c.extend(this, k);
            this.load = function() {
                if (n == c.loaderstatus.NEW) if (0 < j.lastIndexOf(".swf")) a = j, n = c.loaderstatus.COMPLETE, 
                k.sendEvent(l.COMPLETE); else if (c.getPluginPathType(j) == c.pluginPathType.CDN) n = c.loaderstatus.COMPLETE, 
                k.sendEvent(l.COMPLETE); else {
                    n = c.loaderstatus.LOADING;
                    var d = new c.scriptloader(g());
                    d.addEventListener(l.COMPLETE, b);
                    d.addEventListener(l.ERROR, e);
                    d.load();
                }
            };
            this.registerPlugin = function(b, e, g, j) {
                q && (clearTimeout(q), q = void 0);
                f = e;
                g && j ? (a = j, d = g) : "string" == typeof g ? a = g : "function" == typeof g ? d = g : !g && !j && (a = b);
                n = c.loaderstatus.COMPLETE;
                k.sendEvent(l.COMPLETE);
            };
            this.getStatus = function() {
                return n;
            };
            this.getPluginName = function() {
                return c.getPluginName(j);
            };
            this.getFlashPath = function() {
                if (a) switch (c.getPluginPathType(a)) {
                  case c.pluginPathType.ABSOLUTE:
                    return a;

                  case c.pluginPathType.RELATIVE:
                    return 0 < j.lastIndexOf(".swf") ? c.getAbsolutePath(a, window.location.href) : c.getAbsolutePath(a, g());
                }
                return null;
            };
            this.getJS = function() {
                return d;
            };
            this.getTarget = function() {
                return f;
            };
            this.getPluginmode = function() {
                if ("undefined" != typeof a && "undefined" != typeof d) return h.pluginmodes.HYBRID;
                if ("undefined" != typeof a) return h.pluginmodes.FLASH;
                if ("undefined" != typeof d) return h.pluginmodes.JAVASCRIPT;
            };
            this.getNewInstance = function(a, b, c) {
                return new d(a, b, c);
            };
            this.getURL = function() {
                return j;
            };
        };
    }(jwplayer.plugins), function(h) {
        var c = h.utils, l = h.events, j = c.foreach;
        h.plugins.pluginloader = function(g, b) {
            function e() {
                f && m.sendEvent(l.ERROR, {
                    message: q
                });
                d || (d = !0, a = c.loaderstatus.COMPLETE, m.sendEvent(l.COMPLETE));
            }
            function h() {
                k || e();
                if (!d && !f) {
                    var a = 0, b = g.getPlugins();
                    c.foreach(k, function(d) {
                        d = c.getPluginName(d);
                        var m = b[d];
                        d = m.getJS();
                        var g = m.getTarget(), m = m.getStatus();
                        m == c.loaderstatus.LOADING || m == c.loaderstatus.NEW ? a++ : d && !c.versionCheck(g) && (f = !0, 
                        q = "Incompatible player version", e());
                    });
                    0 === a && e();
                }
            }
            var a = c.loaderstatus.NEW, d = !1, f = !1, q, k = b, m = new l.eventdispatcher();
            c.extend(this, m);
            this.setupPlugins = function(a, b, d) {
                var e = {
                    length: 0,
                    plugins: {}
                }, f = 0, m = {}, h = g.getPlugins();
                j(b.plugins, function(g, j) {
                    var k = c.getPluginName(g), n = h[k], l = n.getFlashPath(), q = n.getJS(), I = n.getURL();
                    l && (e.plugins[l] = c.extend({}, j), e.plugins[l].pluginmode = n.getPluginmode(), 
                    e.length++);
                    try {
                        if (q && b.plugins && b.plugins[I]) {
                            var r = document.createElement("div");
                            r.id = a.id + "_" + k;
                            r.style.position = "absolute";
                            r.style.top = 0;
                            r.style.zIndex = f + 10;
                            m[k] = n.getNewInstance(a, c.extend({}, b.plugins[I]), r);
                            f++;
                            a.onReady(d(m[k], r, !0));
                            a.onResize(d(m[k], r));
                        }
                    } catch (P) {
                        c.log("ERROR: Failed to load " + k + ".");
                    }
                });
                a.plugins = m;
                return e;
            };
            this.load = function() {
                if (!(c.exists(b) && "object" != c.typeOf(b))) {
                    a = c.loaderstatus.LOADING;
                    j(b, function(a) {
                        c.exists(a) && (a = g.addPlugin(a), a.addEventListener(l.COMPLETE, h), a.addEventListener(l.ERROR, r));
                    });
                    var d = g.getPlugins();
                    j(d, function(a, b) {
                        b.load();
                    });
                }
                h();
            };
            this.destroy = function() {
                m && (m.resetEventListeners(), m = null);
            };
            var r = this.pluginFailed = function() {
                f || (f = !0, q = "File not found", e());
            };
            this.getStatus = function() {
                return a;
            };
        };
    }(jwplayer), function(h) {
        h.parsers = {
            localName: function(c) {
                return c ? c.localName ? c.localName : c.baseName ? c.baseName : "" : "";
            },
            textContent: function(c) {
                return c ? c.textContent ? h.utils.trim(c.textContent) : c.text ? h.utils.trim(c.text) : "" : "";
            },
            getChildNode: function(c, h) {
                return c.childNodes[h];
            },
            numChildren: function(c) {
                return c.childNodes ? c.childNodes.length : 0;
            }
        };
    }(jwplayer), function(h) {
        var c = h.parsers;
        (c.jwparser = function() {}).parseEntry = function(l, j) {
            for (var g = [], b = [], e = h.utils.xmlAttribute, n = 0; n < l.childNodes.length; n++) {
                var a = l.childNodes[n];
                if ("jwplayer" == a.prefix) {
                    var d = c.localName(a);
                    "source" == d ? (delete j.sources, g.push({
                        file: e(a, "file"),
                        "default": e(a, "default"),
                        label: e(a, "label"),
                        type: e(a, "type")
                    })) : "track" == d ? (delete j.tracks, b.push({
                        file: e(a, "file"),
                        "default": e(a, "default"),
                        kind: e(a, "kind"),
                        label: e(a, "label")
                    })) : (j[d] = h.utils.serialize(c.textContent(a)), "file" == d && j.sources && delete j.sources);
                }
                j.file || (j.file = j.link);
            }
            if (g.length) {
                j.sources = [];
                for (n = 0; n < g.length; n++) 0 < g[n].file.length && (g[n]["default"] = "true" == g[n]["default"] ? !0 : !1, 
                g[n].label.length || delete g[n].label, j.sources.push(g[n]));
            }
            if (b.length) {
                j.tracks = [];
                for (n = 0; n < b.length; n++) 0 < b[n].file.length && (b[n]["default"] = "true" == b[n]["default"] ? !0 : !1, 
                b[n].kind = !b[n].kind.length ? "captions" : b[n].kind, b[n].label.length || delete b[n].label, 
                j.tracks.push(b[n]));
            }
            return j;
        };
    }(jwplayer), function(h) {
        var c = jwplayer.utils, l = c.xmlAttribute, j = h.localName, g = h.textContent, b = h.numChildren, e = h.mediaparser = function() {};
        e.parseGroup = function(h, a) {
            var d, f, q = [];
            for (f = 0; f < b(h); f++) if (d = h.childNodes[f], "media" == d.prefix && j(d)) switch (j(d).toLowerCase()) {
              case "content":
                l(d, "duration") && (a.duration = c.seconds(l(d, "duration")));
                0 < b(d) && (a = e.parseGroup(d, a));
                l(d, "url") && (a.sources || (a.sources = []), a.sources.push({
                    file: l(d, "url"),
                    type: l(d, "type"),
                    width: l(d, "width"),
                    label: l(d, "label")
                }));
                break;

              case "title":
                a.title = g(d);
                break;

              case "description":
                a.description = g(d);
                break;

              case "guid":
                a.mediaid = g(d);
                break;

              case "thumbnail":
                a.image || (a.image = l(d, "url"));
                break;

              case "group":
                e.parseGroup(d, a);
                break;

              case "subtitle":
                var k = {};
                k.file = l(d, "url");
                k.kind = "captions";
                if (0 < l(d, "lang").length) {
                    var m = k;
                    d = l(d, "lang");
                    var r = {
                        zh: "Chinese",
                        nl: "Dutch",
                        en: "English",
                        fr: "French",
                        de: "German",
                        it: "Italian",
                        ja: "Japanese",
                        pt: "Portuguese",
                        ru: "Russian",
                        es: "Spanish"
                    };
                    d = r[d] ? r[d] : d;
                    m.label = d;
                }
                q.push(k);
            }
            a.hasOwnProperty("tracks") || (a.tracks = []);
            for (f = 0; f < q.length; f++) a.tracks.push(q[f]);
            return a;
        };
    }(jwplayer.parsers), function(h) {
        function c(b) {
            for (var a = {}, d = 0; d < b.childNodes.length; d++) {
                var c = b.childNodes[d], g = e(c);
                if (g) switch (g.toLowerCase()) {
                  case "enclosure":
                    a.file = l.xmlAttribute(c, "url");
                    break;

                  case "title":
                    a.title = j(c);
                    break;

                  case "guid":
                    a.mediaid = j(c);
                    break;

                  case "pubdate":
                    a.date = j(c);
                    break;

                  case "description":
                    a.description = j(c);
                    break;

                  case "link":
                    a.link = j(c);
                    break;

                  case "category":
                    a.tags = a.tags ? a.tags + j(c) : j(c);
                }
            }
            a = h.mediaparser.parseGroup(b, a);
            a = h.jwparser.parseEntry(b, a);
            return new jwplayer.playlist.item(a);
        }
        var l = jwplayer.utils, j = h.textContent, g = h.getChildNode, b = h.numChildren, e = h.localName;
        h.rssparser = {};
        h.rssparser.parse = function(j) {
            for (var a = [], d = 0; d < b(j); d++) {
                var f = g(j, d);
                if ("channel" == e(f).toLowerCase()) for (var h = 0; h < b(f); h++) {
                    var k = g(f, h);
                    "item" == e(k).toLowerCase() && a.push(c(k));
                }
            }
            return a;
        };
    }(jwplayer.parsers), function(h) {
        h.playlist = function(c) {
            var l = [];
            if ("array" == h.utils.typeOf(c)) for (var j = 0; j < c.length; j++) l.push(new h.playlist.item(c[j])); else l.push(new h.playlist.item(c));
            return l;
        };
    }(jwplayer), function(h) {
        var c = h.item = function(l) {
            var j = jwplayer.utils, g = j.extend({}, c.defaults, l), b, e;
            g.tracks = l && j.exists(l.tracks) ? l.tracks : [];
            0 === g.sources.length && (g.sources = [ new h.source(g) ]);
            for (b = 0; b < g.sources.length; b++) e = g.sources[b]["default"], g.sources[b]["default"] = e ? "true" == e.toString() : !1, 
            g.sources[b] = new h.source(g.sources[b]);
            if (g.captions && !j.exists(l.tracks)) {
                for (l = 0; l < g.captions.length; l++) g.tracks.push(g.captions[l]);
                delete g.captions;
            }
            for (b = 0; b < g.tracks.length; b++) g.tracks[b] = new h.track(g.tracks[b]);
            return g;
        };
        c.defaults = {
            description: void 0,
            image: void 0,
            mediaid: void 0,
            title: void 0,
            sources: [],
            tracks: []
        };
    }(jwplayer.playlist), function(h) {
        var c = jwplayer, l = c.utils, j = c.events, g = c.parsers;
        h.loader = function() {
            function b(b) {
                try {
                    var c = b.responseXML.childNodes;
                    b = "";
                    for (var e = 0; e < c.length && !(b = c[e], 8 != b.nodeType); e++) ;
                    "xml" == g.localName(b) && (b = b.nextSibling);
                    if ("rss" != g.localName(b)) n("Not a valid RSS feed"); else {
                        var k = new h(g.rssparser.parse(b));
                        a.sendEvent(j.JWPLAYER_PLAYLIST_LOADED, {
                            playlist: k
                        });
                    }
                } catch (m) {
                    n();
                }
            }
            function c(a) {
                n(a.match(/invalid/i) ? "Not a valid RSS feed" : "");
            }
            function n(b) {
                a.sendEvent(j.JWPLAYER_ERROR, {
                    message: b ? b : "Error loading file"
                });
            }
            var a = new j.eventdispatcher();
            l.extend(this, a);
            this.load = function(a) {
                l.ajax(a, b, c);
            };
        };
    }(jwplayer.playlist), function(h) {
        var c = jwplayer.utils, l = {
            file: void 0,
            label: void 0,
            type: void 0,
            "default": void 0
        };
        h.source = function(j) {
            var g = c.extend({}, l);
            c.foreach(l, function(b) {
                c.exists(j[b]) && (g[b] = j[b], delete j[b]);
            });
            g.type && 0 < g.type.indexOf("/") && (g.type = c.extensionmap.mimeType(g.type));
            "m3u8" == g.type && (g.type = "hls");
            "smil" == g.type && (g.type = "rtmp");
            return g;
        };
    }(jwplayer.playlist), function(h) {
        var c = jwplayer.utils, l = {
            file: void 0,
            label: void 0,
            kind: "captions",
            "default": !1
        };
        h.track = function(j) {
            var g = c.extend({}, l);
            j || (j = {});
            c.foreach(l, function(b) {
                c.exists(j[b]) && (g[b] = j[b], delete j[b]);
            });
            return g;
        };
    }(jwplayer.playlist), function(h) {
        var c = h.cast = {}, l = h.utils;
        c.adprovider = function(j, g) {
            function b() {
                f = {
                    message: q,
                    position: 0,
                    duration: -1
                };
            }
            function e(a, b) {
                var d = {
                    command: a
                };
                void 0 !== b && (d.args = b);
                g.sendMessage(j, d, n, function(a) {
                    c.error("message send error", a);
                });
            }
            function n() {}
            var a = new c.provider(j, g), d = l.extend(this, a), f, q = "Loading ad", k = 0;
            d.init = function() {
                a.init();
                b();
            };
            d.destroy = function() {
                a.destroy();
            };
            d.updateModel = function(d, e) {
                (d.tag || d.newstate || d.sequence || d.companions) && c.log("received ad change:", d);
                d.tag && f.tag && d.tag !== f.tag && (c.error("ad messages not received in order. new model:", d, "old model:", f), 
                b());
                h.utils.extend(f, d);
                a.updateModel(d, e);
            };
            d.getAdModel = function() {
                var a = l.extend({}, f);
                a.message = 0 < f.duration ? this.getAdMessage() : q;
                return a;
            };
            d.resetAdModel = function() {
                b();
            };
            d.getAdMessage = function() {
                var a = f.message.replace(/xx/gi, "" + Math.min(f.duration | 0, Math.ceil(f.duration - f.position)));
                f.podMessage && 1 < f.podcount && (a = f.podMessage.replace(/__AD_POD_CURRENT__/g, "" + f.sequence).replace(/__AD_POD_LENGTH__/g, "" + f.podcount) + a);
                return a;
            };
            d.skipAd = function(a) {
                e("skipAd", {
                    tag: a.tag
                });
            };
            d.clickAd = function(a) {
                k = 1 * new Date();
                e("clickAd", {
                    tag: a.tag
                });
            };
            d.timeSinceClick = function() {
                return 1 * new Date() - k;
            };
        };
    }(window.jwplayer), function(h, c) {
        function l(a, b) {
            a[b] && (a[b] = g.getAbsolutePath(a[b]));
        }
        var j = c.cast, g = c.utils, b = c.events, e = b.state, n = {};
        j.NS = "urn:x-cast:com.longtailvideo.jwplayer";
        j.availability = null;
        j.available = function(a) {
            a = a || j.availability;
            var b = h.chrome, c = "available";
            b.cast && b.cast.ReceiverAvailability && (c = b.cast.ReceiverAvailability.AVAILABLE);
            return a === c;
        };
        j.controller = function(a, d) {
            var f, q;
            function k(a, b) {
                var d = {
                    command: a
                };
                void 0 !== b && (d.args = b);
                w.sendMessage(j.NS, d, O, function(a) {
                    j.log("error message", a);
                    "Invalid namespace" === a.description && A();
                });
            }
            function m(a) {
                a = !!j.available(a.availability);
                N.available !== a && (N.available = a, t(b.JWPLAYER_CAST_AVAILABLE));
            }
            function r(a) {
                j.log("existing session", a);
                w || (K = a.session, K.addMessageListener(j.NS, x));
            }
            function x(e, f) {
                var g = JSON.parse(f);
                if (!g) throw "Message not proper JSON";
                if (g.reconcile) {
                    K.removeMessageListener(j.NS, x);
                    var m = g.diff, h = K;
                    if (!m.id || !g.appid || !g.pageUrl) m.id = c().id, g.appid = J.appid, g.pageUrl = Q, 
                    K = w = null;
                    m.id === a.id && g.appid === J.appid && g.pageUrl === Q && (w || (a.jwInstreamState() && a.jwInstreamDestroy(!0), 
                    v(h), d.sendEvent(b.JWPLAYER_PLAYER_STATE, {
                        oldstate: m.oldstate,
                        newstate: m.newstate
                    })), H(g));
                    K = null;
                }
            }
            function u(a) {
                N.active = !!a;
                a = N;
                var d;
                d = w && w.receiver ? w.receiver.friendlyName : "";
                a.deviceName = d;
                t(b.JWPLAYER_CAST_SESSION, {});
            }
            function t(a) {
                var b = g.extend({}, N);
                d.sendEvent(a, b);
            }
            function p(a) {
                var b = h.chrome;
                a.code !== b.cast.ErrorCode.CANCEL && (j.log("Cast Session Error:", a, w), a.code === b.cast.ErrorCode.SESSION_ERROR && A());
            }
            function A() {
                w ? (B(), w.stop(F, G)) : F();
            }
            function G(a) {
                j.error("Cast Session Stop error:", a, w);
                F();
            }
            function v(m) {
                w = m;
                w.addMessageListener(j.NS, D);
                w.addUpdateListener(C);
                a.jwPause(!0);
                a.jwSetFullscreen(!1);
                M = d.getVideo();
                f = d.volume;
                q = d.mute;
                z = new j.provider(k);
                z.init();
                d.setVideo(z);
                a.jwPlay = function(a) {
                    !1 === a ? z.pause() : z.play();
                };
                a.jwPause = function(b) {
                    a.jwPlay(!!b);
                };
                a.jwLoad = function(a) {
                    "number" === g.typeOf(a) && d.setItem(a);
                    z.load(a);
                };
                a.jwPlaylistItem = function(a) {
                    "number" === g.typeOf(a) && d.setItem(a);
                    z.playlistItem(a);
                };
                a.jwPlaylistNext = function() {
                    a.jwPlaylistItem(d.item + 1);
                };
                a.jwPlaylistPrev = function() {
                    a.jwPlaylistItem(d.item - 1);
                };
                a.jwSetVolume = function(a) {
                    g.exists(a) && (a = Math.min(Math.max(0, a), 100) | 0, R(a) && (a = Math.max(0, Math.min(a / 100, 1)), 
                    w.setReceiverVolumeLevel(a, I, function(a) {
                        j.error("set volume error", a);
                        I();
                    })));
                };
                a.jwSetMute = function(a) {
                    g.exists(a) || (a = !L.mute);
                    P(a) && w.setReceiverMuted(!!a, I, function(a) {
                        j.error("set muted error", a);
                        I();
                    });
                };
                a.jwGetVolume = function() {
                    return L.volume | 0;
                };
                a.jwGetMute = function() {
                    return !!L.mute;
                };
                a.jwIsBeforePlay = function() {
                    return !1;
                };
                var l = a.jwSetCurrentCaptions;
                a.jwSetCurrentCaptions = function(a) {
                    l(a);
                    z.sendCommand("caption", a);
                };
                a.jwSkipAd = function(a) {
                    y && (y.skipAd(a), a = y.getAdModel(), a.complete = !0, d.sendEvent(b.JWPLAYER_CAST_AD_CHANGED, a));
                };
                a.jwClickAd = function(f) {
                    if (y && 300 < y.timeSinceClick() && (y.clickAd(f), d.state !== e.PAUSED)) {
                        var g = {
                            tag: f.tag
                        };
                        f.sequence && (g.sequence = f.sequence);
                        f.podcount && (g.podcount = f.podcount);
                        c(a.id).dispatchEvent(b.JWPLAYER_AD_CLICK, g);
                        h.open(f.clickthrough);
                    }
                };
                a.jwPlayAd = a.jwPauseAd = a.jwSetControls = a.jwForceState = a.jwReleaseState = a.jwSetFullscreen = a.jwDetachMedia = a.jwAttachMedia = O;
                var n = c(a.id).plugins;
                n.vast && n.vast.jwPauseAd !== O && (S = {
                    jwPlayAd: n.vast.jwPlayAd,
                    jwPauseAd: n.vast.jwPauseAd
                }, n.vast.jwPlayAd = n.vast.jwPauseAd = O);
                I();
                u(!0);
                m !== K && z.setup(E(), d);
            }
            function C(a) {
                j.log("Cast Session status", a);
                a ? I() : (z.sendEvent(b.JWPLAYER_PLAYER_STATE, {
                    oldstate: d.state,
                    newstate: e.BUFFERING
                }), F());
            }
            function F() {
                w && (B(), w = null);
                if (M) {
                    delete a.jwSkipAd;
                    delete a.jwClickAd;
                    a.initializeAPI();
                    var m = c(a.id).plugins;
                    m.vast && g.extend(m.vast, S);
                    d.volume = f;
                    d.mute = q;
                    d.setVideo(M);
                    d.duration = 0;
                    z && (z.destroy(), z = null);
                    y && (y.destroy(), y = null);
                    d.state !== e.IDLE ? g.isIPad() || g.isIPod() ? (a.jwStop(!0), M.sendEvent(b.JWPLAYER_PLAYER_STATE, {
                        oldstate: e.BUFFERING,
                        newstate: e.IDLE
                    })) : (d.state = e.IDLE, a.jwPlay(!0), a.jwSeek(d.position)) : M.sendEvent(b.JWPLAYER_PLAYER_STATE, {
                        oldstate: e.BUFFERING,
                        newstate: e.IDLE
                    });
                    M = null;
                }
                u(!1);
            }
            function B() {
                w.removeUpdateListener(C);
                w.removeMessageListener(j.NS, D);
            }
            function D(a, b) {
                var d = JSON.parse(b);
                if (!d) throw "Message not proper JSON";
                H(d);
            }
            function H(c) {
                if ("state" === c.type) {
                    if (y && (c.diff.newstate || c.diff.position)) y.destroy(), y = null, d.setVideo(z), 
                    d.sendEvent(b.JWPLAYER_CAST_AD_CHANGED, {
                        done: !0
                    });
                    z.updateModel(c.diff, c.type);
                    c = c.diff;
                    void 0 !== c.item && d.item !== c.item && (d.item = c.item, d.sendEvent(b.JWPLAYER_PLAYLIST_ITEM, {
                        index: d.item
                    }));
                } else if ("ad" === c.type) {
                    null === y && (y = new j.adprovider(j.NS, w), y.init(), d.setVideo(y));
                    y.updateModel(c.diff, c.type);
                    var e = y.getAdModel();
                    c.diff.clickthrough && (e.onClick = a.jwClickAd);
                    c.diff.skipoffset && (e.onSkipAd = a.jwSkipAd);
                    d.sendEvent(b.JWPLAYER_CAST_AD_CHANGED, e);
                    c.diff.complete && y.resetAdModel();
                } else "connection" === c.type ? !0 === c.closed && A() : j.error("received unhandled message", c.type, c);
            }
            function E() {
                var a = g.extend({}, d.config);
                a.cast = g.extend({
                    pageUrl: Q
                }, J);
                for (var b = "base autostart controls fallback fullscreen width height mobilecontrols modes playlistlayout playlistposition playlistsize primary stretching sharing related ga skin logo listbar".split(" "), c = b.length; c--; ) delete a[b[c]];
                b = a.plugins;
                delete a.plugins;
                for (var e in b) if (b.hasOwnProperty(e)) {
                    var f = b[e];
                    if (f.client && (/[\.\/]/.test(f.client) && l(f, "client"), -1 < f.client.indexOf("vast"))) {
                        c = a;
                        f = g.extend({}, f);
                        f.client = "vast";
                        delete f.companiondiv;
                        if (f.schedule) {
                            var m = void 0;
                            for (m in f.schedule) f.schedule.hasOwnProperty(m) && l(f.schedule[m].ad || f.schedule[m], "tag");
                        }
                        l(f, "tag");
                        c.advertising = f;
                    }
                }
                d.position && (a.position = d.position);
                0 < d.item && (a.item = d.item);
                a.captionLabel = g.getCookies().captionLabel;
                return a;
            }
            function I() {
                if (w && w.receiver) {
                    var a = w.receiver.volume;
                    if (a) {
                        var b = 100 * a.level | 0;
                        P(!!a.muted);
                        R(b);
                    }
                }
            }
            function R(a) {
                var c = L.volume !== a;
                c && (L.volume = a, z.sendEvent(b.JWPLAYER_MEDIA_VOLUME, {
                    volume: a
                }));
                return c;
            }
            function P(a) {
                var c = L.mute !== a;
                c && (L.mute = a, z.sendEvent(b.JWPLAYER_MEDIA_MUTE, {
                    mute: a
                }));
                return c;
            }
            function O() {}
            var w = null, N = {
                available: !1,
                active: !1,
                deviceName: ""
            }, L = {
                volume: null,
                mute: null
            }, Q = g.getAbsolutePath(h.location.href), J, z = null, y = null, M = null;
            f = d.volume;
            q = d.mute;
            var K = null, S = null;
            J = g.extend({}, n, d.cast);
            l(J, "loadscreen");
            l(J, "endscreen");
            l(J, "logo");
            if (J.appid && (!h.cast || !h.cast.receiver)) j.loader.addEventListener("availability", m), 
            j.loader.addEventListener("session", r), j.loader.initialize(J.appid);
            this.startCasting = function() {
                w || a.jwInstreamState() || h.chrome.cast.requestSession(v, p);
            };
            this.stopCasting = A;
        };
        j.log = function() {
            if (j.debug) {
                var a = Array.prototype.slice.call(arguments, 0);
                console.log.apply(console, a);
            }
        };
        j.error = function() {
            var a = Array.prototype.slice.call(arguments, 0);
            console.error.apply(console, a);
        };
    }(window, jwplayer), function(h, c) {
        function l() {
            c && c.cast && c.cast.isAvailable && !a.apiConfig ? (a.apiConfig = new c.cast.ApiConfig(new c.cast.SessionRequest(m), e, n, c.cast.AutoJoinPolicy.ORIGIN_SCOPED), 
            c.cast.initialize(a.apiConfig, b, g)) : 15 > k++ && setTimeout(l, 1e3);
        }
        function j() {
            q && (q.resetEventListeners(), q = null);
        }
        function g() {
            a.apiConfig = null;
        }
        function b() {}
        function e(b) {
            a.loader.sendEvent("session", {
                session: b
            });
            b.sendMessage(a.NS, {
                whoami: 1
            });
        }
        function n(b) {
            a.availability = b;
            a.loader.sendEvent("availability", {
                availability: b
            });
        }
        window.chrome = c;
        var a = h.cast, d = h.utils, f = h.events, q, k = 0, m = null;
        a.loader = d.extend({
            initialize: function(b) {
                m = b;
                null !== a.availability ? a.loader.sendEvent("availability", {
                    availability: a.availability
                }) : c && c.cast ? l() : q || (q = new d.scriptloader("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"), 
                q.addEventListener(f.ERROR, j), q.addEventListener(f.COMPLETE, l), q.load());
            }
        }, new f.eventdispatcher("cast.loader"));
    }(window.jwplayer, window.chrome || {}), function(h) {
        function c(b) {
            return function() {
                return b;
            };
        }
        function l() {}
        var j = h.cast, g = h.utils, b = h.events, e = b.state;
        j.provider = function(h) {
            function a(a) {
                q.oldstate = q.newstate;
                q.newstate = a;
                d.sendEvent(b.JWPLAYER_PLAYER_STATE, {
                    oldstate: q.oldstate,
                    newstate: q.newstate
                });
            }
            var d = g.extend(this, new b.eventdispatcher("cast.provider")), f = -1, q = {
                newstate: e.IDLE,
                oldstate: e.IDLE,
                buffer: 0,
                position: 0,
                duration: -1,
                audioMode: !1
            };
            d.isCaster = !0;
            d.init = function() {};
            d.destroy = function() {
                clearTimeout(f);
                _castSession = null;
            };
            d.updateModel = function(a, c) {
                a.newstate && (q.newstate = a.newstate, q.oldstate = a.oldstate || q.oldstate, d.sendEvent(b.JWPLAYER_PLAYER_STATE, {
                    oldstate: q.oldstate,
                    newstate: q.newstate
                }));
                if ("ad" !== c) {
                    if (void 0 !== a.position || void 0 !== a.duration) void 0 !== a.position && (q.position = a.position), 
                    void 0 !== a.duration && (q.duration = a.duration), d.sendEvent(b.JWPLAYER_MEDIA_TIME, {
                        position: q.position,
                        duration: q.duration
                    });
                    void 0 !== a.buffer && (q.buffer = a.buffer, d.sendEvent(b.JWPLAYER_MEDIA_BUFFER, {
                        bufferPercent: q.buffer
                    }));
                }
            };
            d.supportsFullscreen = function() {
                return !1;
            };
            d.setup = function(b, c) {
                c.state && (q.newstate = c.state);
                void 0 !== c.buffer && (q.buffer = c.buffer);
                void 0 !== b.position && (q.position = b.position);
                void 0 !== b.duration && (q.duration = b.duration);
                a(e.BUFFERING);
                h("setup", b);
            };
            d.playlistItem = function(b) {
                a(e.BUFFERING);
                h("item", b);
            };
            d.load = function(b) {
                a(e.BUFFERING);
                h("load", b);
            };
            d.stop = function() {
                clearTimeout(f);
                f = setTimeout(function() {
                    a(e.IDLE);
                    h("stop");
                }, 0);
            };
            d.play = function() {
                h("play");
            };
            d.pause = function() {
                a(e.PAUSED);
                h("pause");
            };
            d.seek = function(c) {
                a(e.BUFFERING);
                d.sendEvent(b.JWPLAYER_MEDIA_SEEK, {
                    position: q.position,
                    offset: c
                });
                h("seek", c);
            };
            d.audioMode = function() {
                return q.audioMode;
            };
            d.sendCommand = function(a, b) {
                h(a, b);
            };
            d.detachMedia = function() {
                j.error("detachMedia called while casting");
                return document.createElement("video");
            };
            d.attachMedia = function() {
                j.error("attachMedia called while casting");
            };
            var k;
            d.setContainer = function(a) {
                k = a;
            };
            d.getContainer = function() {
                return k;
            };
            d.volume = d.mute = d.setControls = d.setCurrentQuality = d.remove = d.resize = d.seekDrag = d.addCaptions = d.resetCaptions = d.setVisibility = d.fsCaptions = l;
            d.setFullScreen = d.getFullScreen = d.checkComplete = c(!1);
            d.getWidth = d.getHeight = d.getCurrentQuality = c(0);
            d.getQualityLevels = c([ "Auto" ]);
        };
    }(window.jwplayer), function(h) {
        function c(a, b) {
            j.foreach(b, function(b, c) {
                var e = a[b];
                "function" == typeof e && e.call(a, c);
            });
        }
        function l(a, b, c) {
            var e = a.style;
            e.backgroundColor = "#000";
            e.color = "#FFF";
            e.width = j.styleDimension(c.width);
            e.height = j.styleDimension(c.height);
            e.display = "table";
            e.opacity = 1;
            c = document.createElement("p");
            e = c.style;
            e.verticalAlign = "middle";
            e.textAlign = "center";
            e.display = "table-cell";
            e.font = "15px/20px Arial, Helvetica, sans-serif";
            c.innerHTML = b.replace(":", ":<br>");
            a.innerHTML = "";
            a.appendChild(c);
        }
        var j = h.utils, g = h.events, b = !0, e = !1, n = document, a = h.embed = function(d) {
            function f() {
                if (!B) if ("array" === j.typeOf(u.playlist) && 2 > u.playlist.length && (0 === u.playlist.length || !u.playlist[0].sources || 0 === u.playlist[0].sources.length)) m(); else if (!F) if ("string" === j.typeOf(u.playlist)) C = new h.playlist.loader(), 
                C.addEventListener(g.JWPLAYER_PLAYLIST_LOADED, function(a) {
                    u.playlist = a.playlist;
                    F = e;
                    f();
                }), C.addEventListener(g.JWPLAYER_ERROR, function(a) {
                    F = e;
                    m(a);
                }), F = b, C.load(u.playlist); else if (v.getStatus() == j.loaderstatus.COMPLETE) {
                    for (var k = 0; k < u.modes.length; k++) if (u.modes[k].type && a[u.modes[k].type]) {
                        var l = j.extend({}, u), n = new a[u.modes[k].type](E, u.modes[k], l, v, d);
                        if (n.supportsConfig()) return n.addEventListener(g.ERROR, q), n.embed(), j.css("object.jwswf, .jwplayer:focus", {
                            outline: "none"
                        }), j.css(".jw-tab-focus:focus", {
                            outline: "solid 2px #0B7EF4"
                        }), c(d, l.events), d;
                    }
                    var p;
                    u.fallback ? (p = "No suitable players found and fallback enabled", D = setTimeout(function() {
                        r(p, b);
                    }, 10), j.log(p), new a.download(E, u, m)) : (p = "No suitable players found and fallback disabled", 
                    r(p, e), j.log(p), E.parentNode.replaceChild(H, E));
                }
            }
            function q(a) {
                x(A + a.message);
            }
            function k(a) {
                d.dispatchEvent(g.JWPLAYER_ERROR, {
                    message: "Could not load plugin: " + a.message
                });
            }
            function m(a) {
                a && a.message ? x("Error loading playlist: " + a.message) : x(A + "No playable sources found");
            }
            function r(a, b) {
                D && (clearTimeout(D), D = null);
                D = setTimeout(function() {
                    D = null;
                    d.dispatchEvent(g.JWPLAYER_SETUP_ERROR, {
                        message: a,
                        fallback: b
                    });
                }, 0);
            }
            function x(a) {
                B || (u.fallback ? (B = b, l(E, a, u), r(a, b)) : r(a, e));
            }
            var u = new a.config(d.config), t = u.width, p = u.height, A = "Error loading player: ", G = n.getElementById(d.id), v = h.plugins.loadPlugins(d.id, u.plugins), C, F = e, B = e, D = null, H = null;
            u.fallbackDiv && (H = u.fallbackDiv, delete u.fallbackDiv);
            u.id = d.id;
            u.aspectratio ? d.config.aspectratio = u.aspectratio : delete d.config.aspectratio;
            var E = n.createElement("div");
            E.id = G.id;
            E.style.width = 0 < t.toString().indexOf("%") ? t : t + "px";
            E.style.height = 0 < p.toString().indexOf("%") ? p : p + "px";
            G.parentNode.replaceChild(E, G);
            this.embed = function() {
                B || (v.addEventListener(g.COMPLETE, f), v.addEventListener(g.ERROR, k), v.load());
            };
            this.destroy = function() {
                v && (v.destroy(), v = null);
                C && (C.resetEventListeners(), C = null);
            };
            this.errorScreen = x;
            return this;
        };
        h.embed.errorScreen = l;
    }(jwplayer), function(h) {
        function c(b) {
            if (b.playlist) for (var c = 0; c < b.playlist.length; c++) b.playlist[c] = new g(b.playlist[c]); else {
                var h = {};
                j.foreach(g.defaults, function(a) {
                    l(b, h, a);
                });
                h.sources || (b.levels ? (h.sources = b.levels, delete b.levels) : (c = {}, l(b, c, "file"), 
                l(b, c, "type"), h.sources = c.file ? [ c ] : []));
                b.playlist = [ new g(h) ];
            }
        }
        function l(b, c, g) {
            j.exists(b[g]) && (c[g] = b[g], delete b[g]);
        }
        var j = h.utils, g = h.playlist.item;
        (h.embed.config = function(b) {
            var e = {
                fallback: !0,
                height: 270,
                primary: "html5",
                width: 480,
                base: b.base ? b.base : j.getScriptPath("jwplayer.js"),
                aspectratio: ""
            };
            b = j.extend(e, h.defaults, b);
            var e = {
                type: "html5",
                src: b.base + "jwplayer.html5.js"
            }, g = {
                type: "flash",
                src: b.base + "jwplayer.flash.swf"
            };
            b.modes = "flash" == b.primary ? [ g, e ] : [ e, g ];
            b.listbar && (b.playlistsize = b.listbar.size, b.playlistposition = b.listbar.position, 
            b.playlistlayout = b.listbar.layout);
            b.flashplayer && (g.src = b.flashplayer);
            b.html5player && (e.src = b.html5player);
            c(b);
            g = b.aspectratio;
            if ("string" != typeof g || !j.exists(g)) e = 0; else {
                var a = g.indexOf(":");
                -1 == a ? e = 0 : (e = parseFloat(g.substr(0, a)), g = parseFloat(g.substr(a + 1)), 
                e = 0 >= e || 0 >= g ? 0 : 100 * (g / e) + "%");
            }
            -1 == b.width.toString().indexOf("%") ? delete b.aspectratio : e ? b.aspectratio = e : delete b.aspectratio;
            return b;
        }).addConfig = function(b, e) {
            c(e);
            return j.extend(b, e);
        };
    }(jwplayer), function(h) {
        var c = h.utils, l = document;
        h.embed.download = function(j, g, b) {
            function e(a, b) {
                for (var d = l.querySelectorAll(a), e = 0; e < d.length; e++) c.foreach(b, function(a, b) {
                    d[e].style[a] = b;
                });
            }
            function h(a, b, c) {
                a = l.createElement(a);
                b && (a.className = "jwdownload" + b);
                c && c.appendChild(a);
                return a;
            }
            var a = c.extend({}, g), d = a.width ? a.width : 480, f = a.height ? a.height : 320, q;
            g = g.logo ? g.logo : {
                prefix: c.repo(),
                file: "logo.png",
                margin: 10
            };
            var k, m, r, a = a.playlist, x, u = [ "mp4", "aac", "mp3" ];
            if (a && a.length) {
                x = a[0];
                q = x.sources;
                for (a = 0; a < q.length; a++) {
                    var t = q[a], p = t.type ? t.type : c.extensionmap.extType(c.extension(t.file));
                    t.file && c.foreach(u, function(a) {
                        p == u[a] ? (k = t.file, m = x.image) : c.isYouTube(t.file) && (r = t.file);
                    });
                }
                k ? (q = k, b = m, j && (a = h("a", "display", j), h("div", "icon", a), h("div", "logo", a), 
                q && a.setAttribute("href", c.getAbsolutePath(q))), a = "#" + j.id + " .jwdownload", 
                j.style.width = "", j.style.height = "", e(a + "display", {
                    width: c.styleDimension(Math.max(320, d)),
                    height: c.styleDimension(Math.max(180, f)),
                    background: "black center no-repeat " + (b ? "url(" + b + ")" : ""),
                    backgroundSize: "contain",
                    position: "relative",
                    border: "none",
                    display: "block"
                }), e(a + "display div", {
                    position: "absolute",
                    width: "100%",
                    height: "100%"
                }), e(a + "logo", {
                    top: g.margin + "px",
                    right: g.margin + "px",
                    background: "top right no-repeat url(" + g.prefix + g.file + ")"
                }), e(a + "icon", {
                    background: "center no-repeat url()"
                })) : r ? (g = r, j = h("iframe", "", j), j.src = "http://www.youtube.com/embed/" + c.youTubeID(g), 
                j.width = d, j.height = f, j.style.border = "none") : b();
            }
        };
    }(jwplayer), function(h) {
        var c = h.utils, l = h.events, j = {};
        (h.embed.flash = function(b, e, n, a, d) {
            function f(a, b, c) {
                var d = document.createElement("param");
                d.setAttribute("name", b);
                d.setAttribute("value", c);
                a.appendChild(d);
            }
            function q(a, b, c) {
                return function() {
                    try {
                        c && document.getElementById(d.id + "_wrapper").appendChild(b);
                        var e = document.getElementById(d.id).getPluginConfig("display");
                        "function" == typeof a.resize && a.resize(e.width, e.height);
                        b.style.left = e.x;
                        b.style.top = e.h;
                    } catch (f) {}
                };
            }
            function k(a) {
                if (!a) return {};
                var b = {}, d = [];
                c.foreach(a, function(a, e) {
                    var f = c.getPluginName(a);
                    d.push(a);
                    c.foreach(e, function(a, c) {
                        b[f + "." + a] = c;
                    });
                });
                b.plugins = d.join(",");
                return b;
            }
            var m = new h.events.eventdispatcher(), r = c.flashVersion();
            c.extend(this, m);
            this.embed = function() {
                n.id = d.id;
                if (10 > r) return m.sendEvent(l.ERROR, {
                    message: "Flash version must be 10.0 or greater"
                }), !1;
                var g, h, t = d.config.listbar, p = c.extend({}, n);
                if (b.id + "_wrapper" == b.parentNode.id) g = document.getElementById(b.id + "_wrapper"); else {
                    g = document.createElement("div");
                    h = document.createElement("div");
                    h.style.display = "none";
                    h.id = b.id + "_aspect";
                    g.id = b.id + "_wrapper";
                    g.style.position = "relative";
                    g.style.display = "block";
                    g.style.width = c.styleDimension(p.width);
                    g.style.height = c.styleDimension(p.height);
                    if (d.config.aspectratio) {
                        var A = parseFloat(d.config.aspectratio);
                        h.style.display = "block";
                        h.style.marginTop = d.config.aspectratio;
                        g.style.height = "auto";
                        g.style.display = "inline-block";
                        t && ("bottom" == t.position ? h.style.paddingBottom = t.size + "px" : "right" == t.position && (h.style.marginBottom = -1 * t.size * (A / 100) + "px"));
                    }
                    b.parentNode.replaceChild(g, b);
                    g.appendChild(b);
                    g.appendChild(h);
                }
                g = a.setupPlugins(d, p, q);
                0 < g.length ? c.extend(p, k(g.plugins)) : delete p.plugins;
                "undefined" != typeof p["dock.position"] && "false" == p["dock.position"].toString().toLowerCase() && (p.dock = p["dock.position"], 
                delete p["dock.position"]);
                g = p.wmode ? p.wmode : p.height && 40 >= p.height ? "transparent" : "opaque";
                h = "height width modes events primary base fallback volume".split(" ");
                for (t = 0; t < h.length; t++) delete p[h[t]];
                h = c.getCookies();
                c.foreach(h, function(a, b) {
                    "undefined" == typeof p[a] && (p[a] = b);
                });
                h = window.location.href.split("/");
                h.splice(h.length - 1, 1);
                h = h.join("/");
                p.base = h + "/";
                j[b.id] = p;
                c.isMSIE() ? (h = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" " width="100%" height="100%"id="' + b.id + '" name="' + b.id + '" tabindex=0"">', 
                h += '<param name="movie" value="' + e.src + '">', h += '<param name="allowfullscreen" value="true"><param name="allowscriptaccess" value="always">', 
                h += '<param name="seamlesstabbing" value="true">', h += '<param name="wmode" value="' + g + '">', 
                h += '<param name="bgcolor" value="#000000">', h += "</object>", b.outerHTML = h, 
                g = document.getElementById(b.id)) : (h = document.createElement("object"), h.setAttribute("type", "application/x-shockwave-flash"), 
                h.setAttribute("data", e.src), h.setAttribute("width", "100%"), h.setAttribute("height", "100%"), 
                h.setAttribute("bgcolor", "#000000"), h.setAttribute("id", b.id), h.setAttribute("name", b.id), 
                h.className = "jwswf", f(h, "allowfullscreen", "true"), f(h, "allowscriptaccess", "always"), 
                f(h, "seamlesstabbing", "true"), f(h, "wmode", g), b.parentNode.replaceChild(h, b), 
                g = h);
                d.config.aspectratio && (g.style.position = "absolute");
                d.container = g;
                d.setPlayer(g, "flash");
            };
            this.supportsConfig = function() {
                if (r) if (n) {
                    if ("string" == c.typeOf(n.playlist)) return !0;
                    try {
                        var a = n.playlist[0].sources;
                        if ("undefined" == typeof a) return !0;
                        for (var b = 0; b < a.length; b++) if (a[b].file && g(a[b].file, a[b].type)) return !0;
                    } catch (d) {}
                } else return !0;
                return !1;
            };
        }).getVars = function(b) {
            return j[b];
        };
        var g = h.embed.flashCanPlay = function(b, e) {
            if (c.isYouTube(b) || c.isRtmp(b, e) || "hls" == e) return !0;
            var g = c.extensionmap[e ? e : c.extension(b)];
            return !g ? !1 : !!g.flash;
        };
    }(jwplayer), function(h) {
        function c(b, c, g) {
            if (null !== navigator.userAgent.match(/BlackBerry/i)) return !1;
            if ("youtube" === c || l.isYouTube(b)) return !0;
            var a = l.extension(b);
            c = c || j.extType(a);
            if ("hls" === c) if (g) {
                g = l.isAndroidNative;
                if (g(2) || g(3) || g("4.0")) return !1;
                if (l.isAndroid()) return !0;
            } else if (l.isAndroid()) return !1;
            if (l.isRtmp(b, c)) return !1;
            b = j[c] || j[a];
            if (!b || b.flash && !b.html5) return !1;
            var d;
            a: if (b = b.html5) {
                try {
                    d = !!h.vid.canPlayType(b);
                    break a;
                } catch (f) {}
                d = !1;
            } else d = !0;
            return d;
        }
        var l = h.utils, j = l.extensionmap, g = h.events;
        h.embed.html5 = function(b, e, j, a, d) {
            function f(a, c, d) {
                return function() {
                    try {
                        var e = document.querySelector("#" + b.id + " .jwmain");
                        d && e.appendChild(c);
                        "function" == typeof a.resize && (a.resize(e.clientWidth, e.clientHeight), setTimeout(function() {
                            a.resize(e.clientWidth, e.clientHeight);
                        }, 400));
                        c.left = e.style.left;
                        c.top = e.style.top;
                    } catch (f) {}
                };
            }
            function q(a) {
                k.sendEvent(a.type, {
                    message: "HTML5 player not found"
                });
            }
            var k = this, m = new g.eventdispatcher();
            l.extend(k, m);
            k.embed = function() {
                if (h.html5) {
                    a.setupPlugins(d, j, f);
                    b.innerHTML = "";
                    var c = h.utils.extend({}, j);
                    delete c.volume;
                    c = new h.html5.player(c);
                    d.container = document.getElementById(d.id);
                    d.setPlayer(c, "html5");
                } else c = new l.scriptloader(e.src), c.addEventListener(g.ERROR, q), c.addEventListener(g.COMPLETE, k.embed), 
                c.load();
            };
            k.supportsConfig = function() {
                if (h.vid.canPlayType) try {
                    if ("string" == l.typeOf(j.playlist)) return !0;
                    for (var a = j.playlist[0].sources, b = 0; b < a.length; b++) if (c(a[b].file, a[b].type, j.androidhls)) return !0;
                } catch (d) {}
                return !1;
            };
        };
        h.embed.html5CanPlay = c;
    }(jwplayer), function(h) {
        var c = h.embed, l = h.utils, j = /\.(js|swf)$/;
        h.embed = l.extend(function(g) {
            function b() {
                t = "Adobe SiteCatalyst Error: Could not find Media Module";
            }
            var e = l.repo(), n = l.extend({}, h.defaults), a = l.extend({}, n, g.config), d = g.config, f = a.plugins, q = a.analytics, k = e + "jwpsrv.js", m = e + "sharing.js", r = e + "related.js", x = e + "gapro.js", n = h.key ? h.key : n.key, u = new h.utils.key(n).edition(), t, f = f ? f : {};
            "ads" == u && a.advertising && (j.test(a.advertising.client) ? f[a.advertising.client] = a.advertising : f[e + a.advertising.client + ".js"] = a.advertising);
            delete d.advertising;
            d.key = n;
            a.analytics && j.test(a.analytics.client) && (k = a.analytics.client);
            delete d.analytics;
            q && !("ads" === u || "enterprise" === u) && delete q.enabled;
            if ("free" == u || !q || !1 !== q.enabled) f[k] = q ? q : {};
            delete f.sharing;
            delete f.related;
            switch (u) {
              case "ads":
              case "enterprise":
                if (d.sitecatalyst) try {
                    window.s && window.s.hasOwnProperty("Media") ? new h.embed.sitecatalyst(g) : b();
                } catch (p) {
                    b();
                }

              case "premium":
                a.related && (j.test(a.related.client) && (r = a.related.client), f[r] = a.related), 
                a.ga && (j.test(a.ga.client) && (x = a.ga.client), f[x] = a.ga);

              case "pro":
                a.sharing && (j.test(a.sharing.client) && (m = a.sharing.client), f[m] = a.sharing), 
                a.skin && (d.skin = a.skin.replace(/^(beelden|bekle|five|glow|modieus|roundster|stormtrooper|vapor)$/i, l.repo() + "skins/$1.xml"));
            }
            d.plugins = f;
            g.config = d;
            g = new c(g);
            t && g.errorScreen(t);
            return g;
        }, h.embed);
    }(jwplayer), function(h) {
        var c = jwplayer.utils;
        h.sitecatalyst = function(h) {
            function j(b) {
                a.debug && c.log(b);
            }
            function g(a) {
                a = a.split("/");
                a = a[a.length - 1];
                a = a.split("?");
                return a[0];
            }
            function b() {
                if (!m) {
                    m = !0;
                    var a = n.getPosition();
                    j("stop: " + f + " : " + a);
                    s.Media.stop(f, a);
                }
            }
            function e() {
                r || (b(), r = !0, j("close: " + f), s.Media.close(f), x = !0, k = 0);
            }
            var n = h, a = c.extend({}, n.config.sitecatalyst), d = {
                onPlay: function() {
                    if (!x) {
                        var a = n.getPosition();
                        m = !1;
                        j("play: " + f + " : " + a);
                        s.Media.play(f, a);
                    }
                },
                onPause: b,
                onBuffer: b,
                onIdle: e,
                onPlaylistItem: function(b) {
                    try {
                        x = !0;
                        e();
                        k = 0;
                        var d;
                        if (a.mediaName) d = a.mediaName; else {
                            var h = n.getPlaylistItem(b.index);
                            d = h.title ? h.title : h.file ? g(h.file) : h.sources && h.sources.length ? g(h.sources[0].file) : "";
                        }
                        f = d;
                        q = a.playerName ? a.playerName : n.id;
                    } catch (j) {
                        c.log(j);
                    }
                },
                onTime: function() {
                    if (x) {
                        var a = n.getDuration();
                        if (-1 == a) return;
                        r = m = x = !1;
                        j("open: " + f + " : " + a + " : " + q);
                        s.Media.open(f, a, q);
                        j("play: " + f + " : 0");
                        s.Media.play(f, 0);
                    }
                    a = n.getPosition();
                    if (3 <= Math.abs(a - k)) {
                        var b = k;
                        j("seek: " + b + " to " + a);
                        j("stop: " + f + " : " + b);
                        s.Media.stop(f, b);
                        j("play: " + f + " : " + a);
                        s.Media.play(f, a);
                    }
                    k = a;
                },
                onComplete: e
            }, f, q, k, m = !0, r = !0, x;
            c.foreach(d, function(a) {
                n[a](d[a]);
            });
        };
    }(jwplayer.embed), function(h, c) {
        var l = [], j = h.utils, g = h.events, b = g.state, e = document, n = "getBuffer getCaptionsList getControls getCurrentCaptions getCurrentQuality getDuration getFullscreen getHeight getLockState getMute getPlaylistIndex getSafeRegion getPosition getQualityLevels getState getVolume getWidth isBeforeComplete isBeforePlay releaseState".split(" "), a = "playlistNext stop forceState playlistPrev seek setCurrentCaptions setControls setCurrentQuality setVolume".split(" "), d = {
            onBufferChange: g.JWPLAYER_MEDIA_BUFFER,
            onBufferFull: g.JWPLAYER_MEDIA_BUFFER_FULL,
            onError: g.JWPLAYER_ERROR,
            onSetupError: g.JWPLAYER_SETUP_ERROR,
            onFullscreen: g.JWPLAYER_FULLSCREEN,
            onMeta: g.JWPLAYER_MEDIA_META,
            onMute: g.JWPLAYER_MEDIA_MUTE,
            onPlaylist: g.JWPLAYER_PLAYLIST_LOADED,
            onPlaylistItem: g.JWPLAYER_PLAYLIST_ITEM,
            onPlaylistComplete: g.JWPLAYER_PLAYLIST_COMPLETE,
            onReady: g.API_READY,
            onResize: g.JWPLAYER_RESIZE,
            onComplete: g.JWPLAYER_MEDIA_COMPLETE,
            onSeek: g.JWPLAYER_MEDIA_SEEK,
            onTime: g.JWPLAYER_MEDIA_TIME,
            onVolume: g.JWPLAYER_MEDIA_VOLUME,
            onBeforePlay: g.JWPLAYER_MEDIA_BEFOREPLAY,
            onBeforeComplete: g.JWPLAYER_MEDIA_BEFORECOMPLETE,
            onDisplayClick: g.JWPLAYER_DISPLAY_CLICK,
            onControls: g.JWPLAYER_CONTROLS,
            onQualityLevels: g.JWPLAYER_MEDIA_LEVELS,
            onQualityChange: g.JWPLAYER_MEDIA_LEVEL_CHANGED,
            onCaptionsList: g.JWPLAYER_CAPTIONS_LIST,
            onCaptionsChange: g.JWPLAYER_CAPTIONS_CHANGED,
            onAdError: g.JWPLAYER_AD_ERROR,
            onAdClick: g.JWPLAYER_AD_CLICK,
            onAdImpression: g.JWPLAYER_AD_IMPRESSION,
            onAdTime: g.JWPLAYER_AD_TIME,
            onAdComplete: g.JWPLAYER_AD_COMPLETE,
            onAdCompanions: g.JWPLAYER_AD_COMPANIONS,
            onAdSkipped: g.JWPLAYER_AD_SKIPPED,
            onAdPlay: g.JWPLAYER_AD_PLAY,
            onAdPause: g.JWPLAYER_AD_PAUSE,
            onAdMeta: g.JWPLAYER_AD_META,
            onCast: g.JWPLAYER_CAST_SESSION
        }, f = {
            onBuffer: b.BUFFERING,
            onPause: b.PAUSED,
            onPlay: b.PLAYING,
            onIdle: b.IDLE
        };
        h.api = function(l) {
            function k(a, b) {
                j.foreach(a, function(a, c) {
                    p[a] = function(a) {
                        return b(c, a);
                    };
                });
            }
            function m(a, b) {
                var c = "jw" + b.charAt(0).toUpperCase() + b.slice(1);
                p[b] = function() {
                    var b = t.apply(this, [ c ].concat(Array.prototype.slice.call(arguments, 0)));
                    return a ? p : b;
                };
            }
            function r(a) {
                F = [];
                D && D.destroy && D.destroy();
                h.api.destroyPlayer(a.id);
            }
            function x(a, b) {
                try {
                    a.jwAddEventListener(b, 'function(dat) { jwplayer("' + p.id + '").dispatchEvent("' + b + '", dat); }');
                } catch (c) {
                    j.log("Could not add internal listener");
                }
            }
            function u(a, b) {
                A[a] || (A[a] = [], v && C && x(v, a));
                A[a].push(b);
                return p;
            }
            function t() {
                if (C) {
                    if (v) {
                        var a = Array.prototype.slice.call(arguments, 0), b = a.shift();
                        if ("function" === typeof v[b]) {
                            switch (a.length) {
                              case 6:
                                return v[b](a[0], a[1], a[2], a[3], a[4], a[5]);

                              case 5:
                                return v[b](a[0], a[1], a[2], a[3], a[4]);

                              case 4:
                                return v[b](a[0], a[1], a[2], a[3]);

                              case 3:
                                return v[b](a[0], a[1], a[2]);

                              case 2:
                                return v[b](a[0], a[1]);

                              case 1:
                                return v[b](a[0]);
                            }
                            return v[b]();
                        }
                    }
                    return null;
                }
                F.push(arguments);
            }
            var p = this, A = {}, G = {}, v, C = !1, F = [], B, D, H = {}, E = {};
            p.container = l;
            p.id = l.id;
            p.setup = function(a) {
                if (h.embed) {
                    var b = e.getElementById(p.id);
                    b && (a.fallbackDiv = b);
                    r(p);
                    b = h(p.id);
                    b.config = a;
                    D = new h.embed(b);
                    D.embed();
                    return b;
                }
                return p;
            };
            p.getContainer = function() {
                return p.container;
            };
            p.addButton = function(a, b, c, d) {
                try {
                    E[d] = c, t("jwDockAddButton", a, b, "jwplayer('" + p.id + "').callback('" + d + "')", d);
                } catch (e) {
                    j.log("Could not add dock button" + e.message);
                }
            };
            p.removeButton = function(a) {
                t("jwDockRemoveButton", a);
            };
            p.callback = function(a) {
                if (E[a]) E[a]();
            };
            p.getMeta = function() {
                return p.getItemMeta();
            };
            p.getPlaylist = function() {
                var a = t("jwGetPlaylist");
                "flash" == p.renderingMode && j.deepReplaceKeyName(a, [ "__dot__", "__spc__", "__dsh__", "__default__" ], [ ".", " ", "-", "default" ]);
                return a;
            };
            p.getPlaylistItem = function(a) {
                j.exists(a) || (a = p.getPlaylistIndex());
                return p.getPlaylist()[a];
            };
            p.getRenderingMode = function() {
                return p.renderingMode;
            };
            p.setFullscreen = function(a) {
                j.exists(a) ? t("jwSetFullscreen", a) : t("jwSetFullscreen", !t("jwGetFullscreen"));
                return p;
            };
            p.setMute = function(a) {
                j.exists(a) ? t("jwSetMute", a) : t("jwSetMute", !t("jwGetMute"));
                return p;
            };
            p.lock = function() {
                return p;
            };
            p.unlock = function() {
                return p;
            };
            p.load = function(a) {
                t("jwInstreamDestroy");
                h(p.id).plugins.googima && t("jwDestroyGoogima");
                t("jwLoad", a);
                return p;
            };
            p.playlistItem = function(a) {
                t("jwPlaylistItem", parseInt(a, 10));
                return p;
            };
            p.resize = function(a, b) {
                if ("flash" !== p.renderingMode) t("jwResize", a, b); else {
                    var c = e.getElementById(p.id + "_wrapper"), d = e.getElementById(p.id + "_aspect");
                    d && (d.style.display = "none");
                    c && (c.style.display = "block", c.style.width = j.styleDimension(a), c.style.height = j.styleDimension(b));
                }
                return p;
            };
            p.play = function(a) {
                if (a !== c) return t("jwPlay", a), p;
                a = p.getState();
                var d = B && B.getState();
                d ? d === b.IDLE || d === b.PLAYING || d === b.BUFFERING ? t("jwInstreamPause") : t("jwInstreamPlay") : a == b.PLAYING || a == b.BUFFERING ? t("jwPause") : t("jwPlay");
                return p;
            };
            p.pause = function(a) {
                a === c ? (a = p.getState(), a == b.PLAYING || a == b.BUFFERING ? t("jwPause") : t("jwPlay")) : t("jwPause", a);
                return p;
            };
            p.createInstream = function() {
                return new h.api.instream(this, v);
            };
            p.setInstream = function(a) {
                return B = a;
            };
            p.loadInstream = function(a, b) {
                B = p.setInstream(p.createInstream()).init(b);
                B.loadItem(a);
                return B;
            };
            p.destroyPlayer = function() {
                t("jwPlayerDestroy");
            };
            p.playAd = function(a) {
                var b = h(p.id).plugins;
                b.vast ? b.vast.jwPlayAd(a) : t("jwPlayAd", a);
            };
            p.pauseAd = function() {
                var a = h(p.id).plugins;
                a.vast ? a.vast.jwPauseAd() : t("jwPauseAd");
            };
            k(f, function(a, b) {
                G[a] || (G[a] = [], u(g.JWPLAYER_PLAYER_STATE, function(b) {
                    var c = b.newstate;
                    b = b.oldstate;
                    if (c == a) {
                        var d = G[c];
                        if (d) for (var e = 0; e < d.length; e++) {
                            var f = d[e];
                            "function" == typeof f && f.call(this, {
                                oldstate: b,
                                newstate: c
                            });
                        }
                    }
                }));
                G[a].push(b);
                return p;
            });
            k(d, u);
            j.foreach(n, function(a, b) {
                m(!1, b);
            });
            j.foreach(a, function(a, b) {
                m(!0, b);
            });
            p.remove = function() {
                if (!C) throw "Cannot call remove() before player is ready";
                r(this);
            };
            p.registerPlugin = function(a, b, c, d) {
                h.plugins.registerPlugin(a, b, c, d);
            };
            p.setPlayer = function(a, b) {
                v = a;
                p.renderingMode = b;
            };
            p.detachMedia = function() {
                if ("html5" == p.renderingMode) return t("jwDetachMedia");
            };
            p.attachMedia = function(a) {
                if ("html5" == p.renderingMode) return t("jwAttachMedia", a);
            };
            p.removeEventListener = function(a, b) {
                var c = A[a];
                if (c) for (var d = c.length; d--; ) c[d] === b && c.splice(d, 1);
            };
            p.dispatchEvent = function(a, b) {
                var c = A[a];
                if (c) for (var c = c.slice(0), d = j.translateEventResponse(a, b), e = 0; e < c.length; e++) {
                    var f = c[e];
                    if ("function" === typeof f) try {
                        a === g.JWPLAYER_PLAYLIST_LOADED && j.deepReplaceKeyName(d.playlist, [ "__dot__", "__spc__", "__dsh__", "__default__" ], [ ".", " ", "-", "default" ]), 
                        f.call(this, d);
                    } catch (h) {
                        j.log("There was an error calling back an event handler");
                    }
                }
            };
            p.dispatchInstreamEvent = function(a) {
                B && B.dispatchEvent(a, arguments);
            };
            p.callInternal = t;
            p.playerReady = function(a) {
                C = !0;
                v || p.setPlayer(e.getElementById(a.id));
                p.container = e.getElementById(p.id);
                j.foreach(A, function(a) {
                    x(v, a);
                });
                u(g.JWPLAYER_PLAYLIST_ITEM, function() {
                    H = {};
                });
                u(g.JWPLAYER_MEDIA_META, function(a) {
                    j.extend(H, a.metadata);
                });
                u(g.JWPLAYER_VIEW_TAB_FOCUS, function(a) {
                    var b = p.getContainer();
                    !0 === a.hasFocus ? j.addClass(b, "jw-tab-focus") : j.removeClass(b, "jw-tab-focus");
                });
                for (p.dispatchEvent(g.API_READY); 0 < F.length; ) t.apply(this, F.shift());
            };
            p.getItemMeta = function() {
                return H;
            };
            return p;
        };
        h.playerReady = function(a) {
            var b = h.api.playerById(a.id);
            b ? b.playerReady(a) : h.api.selectPlayer(a.id).playerReady(a);
        };
        h.api.selectPlayer = function(a) {
            var b;
            j.exists(a) || (a = 0);
            a.nodeType ? b = a : "string" == typeof a && (b = e.getElementById(a));
            return b ? (a = h.api.playerById(b.id)) ? a : h.api.addPlayer(new h.api(b)) : "number" == typeof a ? l[a] : null;
        };
        h.api.playerById = function(a) {
            for (var b = 0; b < l.length; b++) if (l[b].id == a) return l[b];
            return null;
        };
        h.api.addPlayer = function(a) {
            for (var b = 0; b < l.length; b++) if (l[b] == a) return a;
            l.push(a);
            return a;
        };
        h.api.destroyPlayer = function(a) {
            var b, d, f;
            j.foreach(l, function(c, e) {
                e.id === a && (b = c, d = e);
            });
            if (b === c || d === c) return null;
            j.clearCss("#" + d.id);
            if (f = e.getElementById(d.id + ("flash" == d.renderingMode ? "_wrapper" : ""))) {
                "html5" === d.renderingMode && d.destroyPlayer();
                var g = e.createElement("div");
                g.id = d.id;
                f.parentNode.replaceChild(g, f);
            }
            l.splice(b, 1);
            return null;
        };
    }(window.jwplayer), function(h) {
        var c = h.events, l = h.utils, j = c.state;
        h.api.instream = function(g, b) {
            function e(a, c) {
                f[a] || (f[a] = [], b.jwInstreamAddEventListener(a, 'function(dat) { jwplayer("' + g.id + '").dispatchInstreamEvent("' + a + '", dat); }'));
                f[a].push(c);
                return this;
            }
            function h(a, b) {
                q[a] || (q[a] = [], e(c.JWPLAYER_PLAYER_STATE, function(b) {
                    var c = b.newstate, d = b.oldstate;
                    if (c == a) {
                        var e = q[c];
                        if (e) for (var f = 0; f < e.length; f++) {
                            var g = e[f];
                            "function" == typeof g && g.call(this, {
                                oldstate: d,
                                newstate: c,
                                type: b.type
                            });
                        }
                    }
                }));
                q[a].push(b);
                return this;
            }
            var a, d, f = {}, q = {}, k = this;
            k.type = "instream";
            k.init = function() {
                g.callInternal("jwInitInstream");
                return k;
            };
            k.loadItem = function(b, c) {
                a = b;
                d = c || {};
                "array" == l.typeOf(b) ? g.callInternal("jwLoadArrayInstream", a, d) : g.callInternal("jwLoadItemInstream", a, d);
            };
            k.removeEvents = function() {
                f = q = {};
            };
            k.removeEventListener = function(a, b) {
                var c = f[a];
                if (c) for (var d = c.length; d--; ) c[d] === b && c.splice(d, 1);
            };
            k.dispatchEvent = function(a, b) {
                var c = f[a];
                if (c) for (var c = c.slice(0), d = l.translateEventResponse(a, b[1]), e = 0; e < c.length; e++) {
                    var g = c[e];
                    "function" == typeof g && g.call(this, d);
                }
            };
            k.onError = function(a) {
                return e(c.JWPLAYER_ERROR, a);
            };
            k.onMediaError = function(a) {
                return e(c.JWPLAYER_MEDIA_ERROR, a);
            };
            k.onFullscreen = function(a) {
                return e(c.JWPLAYER_FULLSCREEN, a);
            };
            k.onMeta = function(a) {
                return e(c.JWPLAYER_MEDIA_META, a);
            };
            k.onMute = function(a) {
                return e(c.JWPLAYER_MEDIA_MUTE, a);
            };
            k.onComplete = function(a) {
                return e(c.JWPLAYER_MEDIA_COMPLETE, a);
            };
            k.onPlaylistComplete = function(a) {
                return e(c.JWPLAYER_PLAYLIST_COMPLETE, a);
            };
            k.onPlaylistItem = function(a) {
                return e(c.JWPLAYER_PLAYLIST_ITEM, a);
            };
            k.onTime = function(a) {
                return e(c.JWPLAYER_MEDIA_TIME, a);
            };
            k.onBuffer = function(a) {
                return h(j.BUFFERING, a);
            };
            k.onPause = function(a) {
                return h(j.PAUSED, a);
            };
            k.onPlay = function(a) {
                return h(j.PLAYING, a);
            };
            k.onIdle = function(a) {
                return h(j.IDLE, a);
            };
            k.onClick = function(a) {
                return e(c.JWPLAYER_INSTREAM_CLICK, a);
            };
            k.onInstreamDestroyed = function(a) {
                return e(c.JWPLAYER_INSTREAM_DESTROYED, a);
            };
            k.onAdSkipped = function(a) {
                return e(c.JWPLAYER_AD_SKIPPED, a);
            };
            k.play = function(a) {
                b.jwInstreamPlay(a);
            };
            k.pause = function(a) {
                b.jwInstreamPause(a);
            };
            k.hide = function() {
                g.callInternal("jwInstreamHide");
            };
            k.destroy = function() {
                k.removeEvents();
                g.callInternal("jwInstreamDestroy");
            };
            k.setText = function(a) {
                b.jwInstreamSetText(a ? a : "");
            };
            k.getState = function() {
                return b.jwInstreamState();
            };
            k.setClick = function(a) {
                b.jwInstreamClick && b.jwInstreamClick(a);
            };
        };
    }(window.jwplayer), function(h) {
        var c = h.api, l = c.selectPlayer;
        c.selectPlayer = function(c) {
            return (c = l(c)) ? c : {
                registerPlugin: function(c, b, e) {
                    h.plugins.registerPlugin(c, b, e);
                }
            };
        };
    }(jwplayer));
});
